32 #define SSH_KEY_LIBRARY_DEFAULT ( (uint8_t)0x00 ) 33 #define SSH_KEY_DEFAULT ( (uint8_t)0x01 ) 34 #define SSH_KEY_USER_INSTALLED ( (uint8_t)0x02 ) 37 #define SSH_KEY_VALID ( 0 ) 38 #define SSH_KEY_NOT_FOUND ( 1 ) 39 #define SSH_KEY_FILE_INVALID ( 2 ) 40 #define SSH_KEY_CERTIFICATE_INVALID ( 3 ) 41 #define SSH_KEY_INVALID ( 4 ) 54 #define SSH_KEY_SIZE_MAX_PEM ( ( 4 * 1024 ) - 1 ) 66 extern char* gSshRsaKeyPemEncoded[ ( SSH_KEY_SIZE_MAX_PEM + 1 ) ];
67 extern char* gSshDsaKeyPemEncoded[ ( SSH_KEY_SIZE_MAX_PEM + 1 ) ];
97 int SshUserAuthenticate(
const char* usernamePtr,
const char* passuint16_tPtr );
123 int SshUserGetKey(
int keyRequested,
const unsigned char** keyBufferPtr,
int* keyLengthPtr );
143 BOOL SshUserVerifyKey(
char* pemKeyPtr,
int pemKeySize,
int* keyTypePtr );
165 void SshUserSetDefault(
void );
184 void SshUserRetrieveKeys(
void );