Update from HEAD.
[openssl.git] / crypto / pkcs12 / p12_attr.c
index 68d6c5ad159a432bc612f93c6e2d9d4e909611c8..e4d9c256470334e5515a5256c33b010470d3c0f4 100644 (file)
@@ -139,7 +139,7 @@ char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag)
        ASN1_TYPE *atype;
        if (!(atype = PKCS12_get_attr(bag, NID_friendlyName))) return NULL;
        if (atype->type != V_ASN1_BMPSTRING) return NULL;
-       return uni2asc(atype->value.bmpstring->data,
+       return OPENSSL_uni2asc(atype->value.bmpstring->data,
                                 atype->value.bmpstring->length);
 }