summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/x_x509a.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-09-07 23:14:26 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-09-07 23:14:26 +0000
commit84b65340e1cf5b0c427d87e89f42382bff2a5b63 (patch)
treebf55a359dd51faaeb01ad56c7aae165a6c3c0b96 /crypto/asn1/x_x509a.c
parentf50c11ca40132a556880d11172694dfec6b90ad2 (diff)
Two new PKCS#12 demo programs.
Update PKCS12_parse(). Make the keyid in certificate aux info more usable.
Diffstat (limited to 'crypto/asn1/x_x509a.c')
-rw-r--r--crypto/asn1/x_x509a.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/asn1/x_x509a.c b/crypto/asn1/x_x509a.c
index 42807cd334..ebcce87bf2 100644
--- a/crypto/asn1/x_x509a.c
+++ b/crypto/asn1/x_x509a.c
@@ -153,6 +153,14 @@ int X509_alias_set1(X509 *x, unsigned char *name, int len)
return ASN1_STRING_set(aux->alias, name, len);
}
+int X509_keyid_set1(X509 *x, unsigned char *id, int len)
+{
+ X509_CERT_AUX *aux;
+ if(!(aux = aux_get(x))) return 0;
+ if(!aux->keyid && !(aux->keyid = ASN1_OCTET_STRING_new())) return 0;
+ return ASN1_STRING_set(aux->keyid, id, len);
+}
+
unsigned char *X509_alias_get0(X509 *x, int *len)
{
if(!x->aux || !x->aux->alias) return NULL;