summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-10-01 09:18:46 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-10-01 09:18:50 +0200
commite1f442f1131cbf176a0063c07afddef2bfa4aef2 (patch)
treeedb419ea8844eb8318e949238000852f0a54f0c1
parent5d7872022f7973bd8a83f3015f8588cfa3699591 (diff)
downloadgnutls-e1f442f1131cbf176a0063c07afddef2bfa4aef2.tar.gz
privkey_pkcs8: added reference for validation parameters OID [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/x509/privkey_pkcs8.c1
-rw-r--r--lib/x509/x509_int.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index 92dea06b06..56be84bfe4 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -247,6 +247,7 @@ encode_to_private_key_info(gnutls_x509_privkey_t pkey,
if ((pkey->params.pkflags & GNUTLS_PK_FLAG_PROVABLE) && pkey->params.seed_size > 0) {
gnutls_datum_t seed_info;
+ /* rfc8479 attribute encoding */
result = _x509_encode_provable_seed(pkey, &seed_info);
if (result < 0) {
diff --git a/lib/x509/x509_int.h b/lib/x509/x509_int.h
index 80e4be1614..bbd59d1547 100644
--- a/lib/x509/x509_int.h
+++ b/lib/x509/x509_int.h
@@ -54,6 +54,7 @@
#define HASH_OID_GOST_R_3411_94_CRYPTOPRO_PARAMS "1.2.643.2.2.30.1"
+/* from rfc8479 */
#define OID_ATTR_PROV_SEED "1.3.6.1.4.1.2312.18.8.1"
struct gnutls_x509_crl_iter {