Fix typo in asn1.h (PRINTABLESTRING_STRING) and fix a bug in object creation
perl script. It failed if the OID had any zeros in it.
This commit is contained in:
@@ -305,7 +305,7 @@ typedef struct asn1_header_st
|
||||
B_ASN1_BMPSTRING|\
|
||||
B_ASN1_UNKNOWN)
|
||||
|
||||
#define ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING_STRING *)\
|
||||
#define ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING *)\
|
||||
ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING)
|
||||
#define ASN1_PRINTABLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a)
|
||||
#define M_i2d_ASN1_PRINTABLESTRING(a,pp) \
|
||||
|
||||
@@ -252,7 +252,7 @@ sub der_it
|
||||
$ret.=pack("C*",$a[0]*40+$a[1]);
|
||||
shift @a;
|
||||
shift @a;
|
||||
while ($_=shift(@a))
|
||||
foreach (@a)
|
||||
{
|
||||
@r=();
|
||||
$t=0;
|
||||
|
||||
Reference in New Issue
Block a user