提交 e4119b93 编写于 作者: D Dr. Stephen Henson

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.
上级 4a71b90d
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
Changes between 0.9.1c and 0.9.2 Changes between 0.9.1c and 0.9.2
*) Fix for a typo in asn1.h. Bug fix to object creation script
obj_dat.pl. It considered a zero in an object definition to mean
"end of object": none of the objects in objects.h have any zeros
so it wasn't spotted.
[Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>]
*) Add support for Triple DES Cipher Block Chaining with Output Feedback *) Add support for Triple DES Cipher Block Chaining with Output Feedback
Masking (CBCM). In the absence of test vectors, the best I have been able Masking (CBCM). In the absence of test vectors, the best I have been able
to do is check that the decrypt undoes the encrypt, so far. Send me test to do is check that the decrypt undoes the encrypt, so far. Send me test
...@@ -22,6 +28,7 @@ ...@@ -22,6 +28,7 @@
If you do a: If you do a:
perl util/mkdef.pl crypto ssl update perl util/mkdef.pl crypto ssl update
it will update them. it will update them.
[Steve Henson]
*) Overhauled the Perl interface (perl/*): *) Overhauled the Perl interface (perl/*):
- ported BN stuff to OpenSSL's different BN library - ported BN stuff to OpenSSL's different BN library
......
...@@ -305,7 +305,7 @@ typedef struct asn1_header_st ...@@ -305,7 +305,7 @@ typedef struct asn1_header_st
B_ASN1_BMPSTRING|\ B_ASN1_BMPSTRING|\
B_ASN1_UNKNOWN) B_ASN1_UNKNOWN)
#define ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING_STRING *)\ #define ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING *)\
ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING) ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING)
#define ASN1_PRINTABLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) #define ASN1_PRINTABLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a)
#define M_i2d_ASN1_PRINTABLESTRING(a,pp) \ #define M_i2d_ASN1_PRINTABLESTRING(a,pp) \
......
...@@ -252,7 +252,7 @@ sub der_it ...@@ -252,7 +252,7 @@ sub der_it
$ret.=pack("C*",$a[0]*40+$a[1]); $ret.=pack("C*",$a[0]*40+$a[1]);
shift @a; shift @a;
shift @a; shift @a;
while ($_=shift(@a)) foreach (@a)
{ {
@r=(); @r=();
$t=0; $t=0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册