]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
privkey_pkcs8: added reference for validation parameters OID [ci skip]
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 1 Oct 2018 07:18:46 +0000 (09:18 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 1 Oct 2018 07:18:50 +0000 (09:18 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/x509/privkey_pkcs8.c
lib/x509/x509_int.h

index 92dea06b06c8a5df96c173abba6a31d9f0481d92..56be84bfe4d5f69525086ecabfbd0277ccd07edf 100644 (file)
@@ -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) {
index 80e4be1614e57740e0a769fc0e823a2f13a27e98..bbd59d1547d5624525e353b8f80d7df5fbbab4e0 100644 (file)
@@ -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 {