diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-03 16:46:32 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-04 11:08:51 +0200 |
commit | f10289f6d8c04111d3a7777f4ed9710a8114ef2f (patch) | |
tree | fb5bb71fb5ede40be849a2f4b330613d4bd7b3f5 /lib/includes | |
parent | 78b693365707dfc5556040739dff7bcdcd70170c (diff) | |
download | gnutls-f10289f6d8c04111d3a7777f4ed9710a8114ef2f.tar.gz |
gnutls_x509_privkey_generate*: allow specifying the SPKI parameters for key generation
This in turn removes the need for reading the flag GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE
on the key generation process. The flag is now only used during key signing
which is also its documented purpose.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/includes')
-rw-r--r-- | lib/includes/gnutls/x509.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h index d0a0da14cb..3175dcff8f 100644 --- a/lib/includes/gnutls/x509.h +++ b/lib/includes/gnutls/x509.h @@ -1209,12 +1209,14 @@ void gnutls_x509_privkey_set_flags(gnutls_x509_privkey_t key, unsigned int flags * gnutls_keygen_types_t: * @GNUTLS_KEYGEN_SEED: Specifies the seed to be used in key generation. * @GNUTLS_KEYGEN_DIGEST: The size field specifies the hash algorithm to be used in key generation. + * @GNUTLS_KEYGEN_SPKI: data points to a %gnutls_x509_spki_t structure; it is not used after the key generation call. * * Enumeration of different key exchange algorithms. */ typedef enum { GNUTLS_KEYGEN_SEED = 1, GNUTLS_KEYGEN_DIGEST = 2, + GNUTLS_KEYGEN_SPKI = 3 } gnutls_keygen_types_t; typedef struct { |