diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-27 16:53:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-03 11:57:52 +0200 |
commit | 4256ef71a7842830f7a27061c31c36554a6b97cc (patch) | |
tree | 0ed46372269b378c67093afe6eaa8fbb046f02f4 /lib/crypto-backend.h | |
parent | 86da29a32b34bd2f84f914f5749c260d9ff11add (diff) | |
download | gnutls-4256ef71a7842830f7a27061c31c36554a6b97cc.tar.gz |
Added convention for missing SubjectPublicKeyInfo params field
That is, when that field is missing, the spki_st structure field
pk will be set to GNUTLS_PK_UNKNOWN. In that case other fields
are undefined.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/crypto-backend.h')
-rw-r--r-- | lib/crypto-backend.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/crypto-backend.h b/lib/crypto-backend.h index 347d6a7806..0f8b93eab4 100644 --- a/lib/crypto-backend.h +++ b/lib/crypto-backend.h @@ -163,7 +163,9 @@ typedef struct gnutls_crypto_bigint { gnutls_bigint_format_t format); } gnutls_crypto_bigint_st; -/* additional information about the public key +/* Additional information about the public key, filled from + * SubjectPublicKeyInfo parameters. When there are no parameters, + * the pk field will be set to GNUTLS_PK_UNKNOWN. */ typedef struct gnutls_x509_spki_st { /* We can have a key which is of type RSA, but a certificate |