summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-10-25 20:49:18 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2009-10-25 23:20:24 +0200
commitdc18e91405903607a7c5c8a9b185f8c286c244b6 (patch)
tree6daddc29e47dcbb07ca78f9dec63d8c8cfdcc2ff /src
parentac0d81e93315fc3ac5595396a179b0d31189a7ef (diff)
downloadgnutls-dc18e91405903607a7c5c8a9b185f8c286c244b6.tar.gz
Added GNUTLS_BAG_SECRET that adds support for storing a randomly generated key
into a PKCS-12 structure. This is a gnutls extension, since PKCS-12 does not specify what should be in the secret bag. What we do is store the key as OCTET string and specify an OID of the PKCS-9 random nonce.
Diffstat (limited to 'src')
-rw-r--r--src/certtool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/certtool.c b/src/certtool.c
index ae61a8e674..97647eaf01 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -2646,6 +2646,8 @@ BAGTYPE (gnutls_pkcs12_bag_type_t x)
return "Encrypted";
case GNUTLS_BAG_CRL:
return "CRL";
+ case GNUTLS_BAG_SECRET:
+ return "Secret";
default:
return "Unknown";
}