diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-30 21:16:24 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-30 21:16:24 +0000 |
commit | fc875472d0aad0bd7ed3235d727dbe4b66b53363 (patch) | |
tree | dc23dce884c637ff3b3313be0762bcf493d380d5 /crypto/pkcs12/p12_attr.c | |
parent | e5e932d212aea2f9acceb4779b44f123050347a7 (diff) | |
download | openssl-fc875472d0aad0bd7ed3235d727dbe4b66b53363.tar.gz |
Another stack.
Diffstat (limited to 'crypto/pkcs12/p12_attr.c')
-rw-r--r-- | crypto/pkcs12/p12_attr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/pkcs12/p12_attr.c b/crypto/pkcs12/p12_attr.c index e096023c32..0dcf553e2a 100644 --- a/crypto/pkcs12/p12_attr.c +++ b/crypto/pkcs12/p12_attr.c @@ -135,11 +135,12 @@ int PKCS8_add_keyusage (PKCS8_PRIV_KEY_INFO *p8, int usage) } sk_ASN1_TYPE_push (attrib->value.set,keyid); attrib->set = 1; - if (!p8->attributes && !(p8->attributes = sk_new (NULL))) { + if (!p8->attributes + && !(p8->attributes = sk_X509_ATTRIBUTE_new (NULL))) { PKCS12err(PKCS12_F_PKCS8_ADD_KEYUSAGE, ERR_R_MALLOC_FAILURE); return 0; } - sk_push (p8->attributes, (char *)attrib); + sk_X509_ATTRIBUTE_push (p8->attributes, attrib); return 1; } |