diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-11-13 12:06:32 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-11-13 12:11:05 +0100 |
commit | 88289f4402d1f3b2063c007fb7029996bd97b987 (patch) | |
tree | 0994bbbf876e8cb210c876e450871a2b08313041 /lib/abstract_int.h | |
parent | 305103b65f5b476daa0e84539128550de552281d (diff) | |
download | gnutls-88289f4402d1f3b2063c007fb7029996bd97b987.tar.gz |
added the notion of preferred sign algorithm in a private key
This can be set for keys imported with gnutls_privkey_import_ext3()
with the info callback. It is only considered for client side keys
in TLS sessions.
Diffstat (limited to 'lib/abstract_int.h')
-rw-r--r-- | lib/abstract_int.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/abstract_int.h b/lib/abstract_int.h index fc78f1cad9..273585a778 100644 --- a/lib/abstract_int.h +++ b/lib/abstract_int.h @@ -41,12 +41,13 @@ struct gnutls_privkey_st { gnutls_privkey_sign_func sign_func; gnutls_privkey_decrypt_func decrypt_func; gnutls_privkey_deinit_func deinit_func; - gnutls_privkey_pk_func pk_func; + gnutls_privkey_info_func info_func; void *userdata; } ext; } key; unsigned int flags; + gnutls_sign_algorithm_t preferred_sign_algo; struct pin_info_st pin; }; @@ -111,4 +112,7 @@ const mac_entry_st *_gnutls_dsa_q_to_hash(gnutls_pk_algorithm_t algo, int _gnutls_privkey_get_mpis(gnutls_privkey_t key, gnutls_pk_params_st * params); +gnutls_sign_algorithm_t +_gnutls_privkey_get_preferred_sign_algo(gnutls_privkey_t key); + #endif |