Initial support for Certificate Policies extension: print out works but setting
[oweals/openssl.git] / crypto / asn1 / a_bmp.c
index 774502b1fc49bb8d89c9b680a5d2ffa217821fde..32a4fc215803bd29c161a99fa3065ce830ba617e 100644 (file)
@@ -60,7 +60,7 @@
 #include "cryptlib.h"
 #include "asn1.h"
 
-/* ASN1err(ASN1_F_D2I_ASN1_INTEGER,ASN1_R_EXPECTING_AN_INTEGER);
+/* ASN1err(ASN1_F_D2I_ASN1_BMPSTRING,ASN1_R_EXPECTING_AN_INTEGER);
  */
 
 int i2d_ASN1_BMPSTRING(a, pp)
@@ -79,10 +79,10 @@ long length;
        ASN1_BMPSTRING *ret=NULL;
 
        ret=(ASN1_BMPSTRING *)d2i_ASN1_bytes((ASN1_STRING **)a,
-       pp,length,V_ASN1_BMPSTRING,V_ASN1_UNIVERSAL);
+               pp,length,V_ASN1_BMPSTRING,V_ASN1_UNIVERSAL);
        if (ret == NULL)
                {
-               ASN1err(ASN1_F_D2I_ASN1_BMPSTRING,ASN1_R_ERROR_STACK);
+               ASN1err(ASN1_F_D2I_ASN1_BMPSTRING,ERR_R_NESTED_ASN1_ERROR);
                return(NULL);
                }
        return(ret);