diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-18 10:32:36 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-18 10:32:36 +0000 |
commit | 4d4fa5bb8a4e2c2fb1fc9ab68a4d6b887e497aa7 (patch) | |
tree | b9dedc72738de90e4dd062df3ae32471bf6f7681 /lib/gnutls_cert.h | |
parent | 07ff6f25feb45c03986a66ce39c17bc2e4e5db09 (diff) | |
download | gnutls-4d4fa5bb8a4e2c2fb1fc9ab68a4d6b887e497aa7.tar.gz |
Added the callbacks gnutls_certificate_client_retrieve_function() and
gnutls_certificate_server_retrieve_function(), to allow a client or a server
to specify certificates for the handshake without storing them to the
credentials structure.
Diffstat (limited to 'lib/gnutls_cert.h')
-rw-r--r-- | lib/gnutls_cert.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gnutls_cert.h b/lib/gnutls_cert.h index 3de12ef484..7c36b31cc9 100644 --- a/lib/gnutls_cert.h +++ b/lib/gnutls_cert.h @@ -85,12 +85,16 @@ int _gnutls_x509_cert2gnutls_cert(gnutls_cert * gcert, const gnutls_datum *derCe int flags); int _gnutls_x509_crt2gnutls_cert(gnutls_cert * gcert, gnutls_x509_crt cert, unsigned int flags); -void _gnutls_free_cert(gnutls_cert* cert); int _gnutls_cert_get_dn(gnutls_cert * cert, gnutls_datum * odn); void _gnutls_privkey_deinit(gnutls_privkey *key); +void _gnutls_cert_deinit(gnutls_cert *cert); int _gnutls_selected_cert_supported_kx(struct gnutls_session_int* session, gnutls_kx_algorithm ** alg, int *alg_size); - +int _gnutls_cert2gnutls_cert(gnutls_cert * gcert, gnutls_certificate_type type, + const gnutls_datum *raw_cert, int flags /* OR of ConvFlags */); +int _gnutls_key2gnutls_key(gnutls_privkey * key, gnutls_certificate_type type, + const gnutls_datum *raw_key, int key_enc /* DER or PEM */); + #endif |