comparison signkey.h @ 1676:d5cdc60db08e

ext-info handling for server-sig-algs only client side is handled
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 May 2020 00:31:41 +0800
parents ae41624c2198
children 35d504d59c05
comparison
equal deleted inserted replaced
1675:ae41624c2198 1676:d5cdc60db08e
118 const char* signkey_name_from_type(enum signkey_type type, unsigned int *namelen); 118 const char* signkey_name_from_type(enum signkey_type type, unsigned int *namelen);
119 enum signkey_type signkey_type_from_name(const char* name, unsigned int namelen); 119 enum signkey_type signkey_type_from_name(const char* name, unsigned int namelen);
120 const char* signature_name_from_type(enum signature_type type, unsigned int *namelen); 120 const char* signature_name_from_type(enum signature_type type, unsigned int *namelen);
121 enum signature_type signature_type_from_name(const char* name, unsigned int namelen); 121 enum signature_type signature_type_from_name(const char* name, unsigned int namelen);
122 enum signkey_type signkey_type_from_signature(enum signature_type sigtype); 122 enum signkey_type signkey_type_from_signature(enum signature_type sigtype);
123 enum signature_type signature_type_from_signkey(enum signkey_type keytype);
124
123 int buf_get_pub_key(buffer *buf, sign_key *key, enum signkey_type *type); 125 int buf_get_pub_key(buffer *buf, sign_key *key, enum signkey_type *type);
124 int buf_get_priv_key(buffer* buf, sign_key *key, enum signkey_type *type); 126 int buf_get_priv_key(buffer* buf, sign_key *key, enum signkey_type *type);
125 void buf_put_pub_key(buffer* buf, sign_key *key, enum signkey_type type); 127 void buf_put_pub_key(buffer* buf, sign_key *key, enum signkey_type type);
126 void buf_put_priv_key(buffer* buf, sign_key *key, enum signkey_type type); 128 void buf_put_priv_key(buffer* buf, sign_key *key, enum signkey_type type);
127 void sign_key_free(sign_key *key); 129 void sign_key_free(sign_key *key);