X-Git-Url: http://git.rot13.org/?p=bcm963xx.git;a=blobdiff_plain;f=userapps%2Fopensource%2Fsshd%2Fsignkey.h;h=8bc7e8f10fb7ab67d8cacc6891690c88f72627f6;hp=06f23963cbce69f66a5e5e0056668284d141c8b1;hb=57a096f051259ceaefd5977f30d269884e1dd248;hpb=9887430fc6b7c0f8eb8e81de2bfe3bba12d8d4a1 diff --git a/userapps/opensource/sshd/signkey.h b/userapps/opensource/sshd/signkey.h index 06f23963..8bc7e8f1 100755 --- a/userapps/opensource/sshd/signkey.h +++ b/userapps/opensource/sshd/signkey.h @@ -42,8 +42,10 @@ struct SIGN_key { typedef struct SIGN_key sign_key; sign_key * new_sign_key(); -int buf_get_pub_key(buffer *buf, sign_key *key, int type); -int buf_get_priv_key(buffer* buf, sign_key *key, int type); +const char* signkey_name_from_type(int type, int *namelen); +int signkey_type_from_name(const char* name, int namelen); +int buf_get_pub_key(buffer *buf, sign_key *key, int *type); +int buf_get_priv_key(buffer* buf, sign_key *key, int *type); void buf_put_pub_key(buffer* buf, sign_key *key, int type); void buf_put_priv_key(buffer* buf, sign_key *key, int type); void sign_key_free(sign_key *key); @@ -52,6 +54,10 @@ void buf_put_sign(buffer* buf, sign_key *key, int type, #ifdef DROPBEAR_SIGNKEY_VERIFY int buf_verify(buffer * buf, sign_key *key, const unsigned char *data, unsigned int len); +char * sign_key_fingerprint(unsigned char* keyblob, unsigned int keybloblen); #endif +int cmp_base64_key(const unsigned char* keyblob, unsigned int keybloblen, + const unsigned char* algoname, unsigned int algolen, + buffer * line); #endif /* _SIGNKEY_H_ */