Use new names
[openssl.git] / crypto / pkcs12 / p12_crt.c
index c4632a9b95ca62fea69ccb2b11dc28d4d938bda5..71f8561352e49d189fa108e2ab29ce68fab6aae3 100644 (file)
@@ -189,7 +189,7 @@ PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert)
     int keyidlen = -1;
 
     /* Add user certificate */
-    if ((bag = PKCS12_x5092certbag(cert)) == NULL)
+    if ((bag = PKCS12_SAFEBAG_new_cert(cert)) == NULL)
         goto err;
 
     /*