diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-20 20:22:03 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-20 20:22:03 +0000 |
commit | a9695a236fae0048af2b3f9934251bbed88cc37e (patch) | |
tree | 805a15570fd3b99e014ccb08936d35839a275114 /lib/gnutls_cert.h | |
parent | 8a56fad939f4cdebacc681bf3bc0df23568b4969 (diff) | |
download | gnutls-a9695a236fae0048af2b3f9934251bbed88cc37e.tar.gz |
several cleanups.
Diffstat (limited to 'lib/gnutls_cert.h')
-rw-r--r-- | lib/gnutls_cert.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/gnutls_cert.h b/lib/gnutls_cert.h index ccd8548dca..96218ff479 100644 --- a/lib/gnutls_cert.h +++ b/lib/gnutls_cert.h @@ -81,20 +81,22 @@ typedef enum ConvFlags { CERT_ONLY_EXTENSIONS=16 } ConvFlags; -int _gnutls_x509_cert2gnutls_cert(gnutls_cert * gcert, const gnutls_datum *derCert, +int _gnutls_x509_raw_cert_to_gcert(gnutls_cert * gcert, const gnutls_datum *derCert, int flags); -int _gnutls_x509_crt2gnutls_cert(gnutls_cert * gcert, gnutls_x509_crt cert, +int _gnutls_x509_crt_to_gcert(gnutls_cert * gcert, gnutls_x509_crt cert, unsigned int flags); + 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); +void _gnutls_gkey_deinit(gnutls_privkey *key); +void _gnutls_gcert_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, + +int _gnutls_raw_cert_to_gcert(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, +int _gnutls_raw_privkey_to_gkey(gnutls_privkey * key, gnutls_certificate_type type, const gnutls_datum *raw_key, int key_enc /* DER or PEM */); #endif |