summaryrefslogtreecommitdiff
path: root/lib/crypto-backend.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-27 16:53:57 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-03 11:57:52 +0200
commit4256ef71a7842830f7a27061c31c36554a6b97cc (patch)
tree0ed46372269b378c67093afe6eaa8fbb046f02f4 /lib/crypto-backend.h
parent86da29a32b34bd2f84f914f5749c260d9ff11add (diff)
downloadgnutls-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.h4
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