Loading CHANGES +6 −0 Original line number Original line Diff line number Diff line Loading @@ -5,6 +5,12 @@ Changes between 0.9.2b and 0.9.3 Changes between 0.9.2b and 0.9.3 *) New function X509V3_EXT_i2d() to create an X509_EXTENSION structure from the internal representation. Various PKCS#7 fixes: remove some evil casts and set the enc_dig_alg field properly based on the signing key type. [Steve Henson] *) Allow PKCS#12 password to be set from the command line or the *) Allow PKCS#12 password to be set from the command line or the environment. Let 'ca' get its config file name from the environment environment. Let 'ca' get its config file name from the environment variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req' variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req' Loading crypto/asn1/a_type.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -293,7 +293,7 @@ int ASN1_TYPE_get(ASN1_TYPE *a) return(0); return(0); } } void ASN1_TYPE_set(ASN1_TYPE *a, int type, char *value) void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value) { { if (a->value.ptr != NULL) if (a->value.ptr != NULL) ASN1_TYPE_component_free(a); ASN1_TYPE_component_free(a); Loading crypto/asn1/asn1.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -488,7 +488,7 @@ void ASN1_TYPE_free(ASN1_TYPE *a); int i2d_ASN1_TYPE(ASN1_TYPE *a,unsigned char **pp); int i2d_ASN1_TYPE(ASN1_TYPE *a,unsigned char **pp); ASN1_TYPE * d2i_ASN1_TYPE(ASN1_TYPE **a,unsigned char **pp,long length); ASN1_TYPE * d2i_ASN1_TYPE(ASN1_TYPE **a,unsigned char **pp,long length); int ASN1_TYPE_get(ASN1_TYPE *a); int ASN1_TYPE_get(ASN1_TYPE *a); void ASN1_TYPE_set(ASN1_TYPE *a, int type, char *value); void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); ASN1_OBJECT * ASN1_OBJECT_new(void ); ASN1_OBJECT * ASN1_OBJECT_new(void ); void ASN1_OBJECT_free(ASN1_OBJECT *a); void ASN1_OBJECT_free(ASN1_OBJECT *a); Loading crypto/asn1/evp_asn1.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -67,7 +67,7 @@ int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len) if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0); if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0); if (!ASN1_OCTET_STRING_set(os,data,len)) return(0); if (!ASN1_OCTET_STRING_set(os,data,len)) return(0); ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,(char *)os); ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,os); return(1); return(1); } } Loading Loading @@ -124,7 +124,7 @@ int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, unsigned char *data, i2d_ASN1_INTEGER(&in,&p); i2d_ASN1_INTEGER(&in,&p); M_i2d_ASN1_OCTET_STRING(&os,&p); M_i2d_ASN1_OCTET_STRING(&os,&p); ASN1_TYPE_set(a,V_ASN1_SEQUENCE,(char *)osp); ASN1_TYPE_set(a,V_ASN1_SEQUENCE,osp); return(1); return(1); } } Loading crypto/asn1/x_attrib.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -117,7 +117,7 @@ X509_ATTRIBUTE *d2i_X509_ATTRIBUTE(X509_ATTRIBUTE **a, unsigned char **pp, M_ASN1_D2I_Finish(a,X509_ATTRIBUTE_free,ASN1_F_D2I_X509_ATTRIBUTE); M_ASN1_D2I_Finish(a,X509_ATTRIBUTE_free,ASN1_F_D2I_X509_ATTRIBUTE); } } X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, char *value) X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value) { { X509_ATTRIBUTE *ret=NULL; X509_ATTRIBUTE *ret=NULL; ASN1_TYPE *val=NULL; ASN1_TYPE *val=NULL; Loading Loading
CHANGES +6 −0 Original line number Original line Diff line number Diff line Loading @@ -5,6 +5,12 @@ Changes between 0.9.2b and 0.9.3 Changes between 0.9.2b and 0.9.3 *) New function X509V3_EXT_i2d() to create an X509_EXTENSION structure from the internal representation. Various PKCS#7 fixes: remove some evil casts and set the enc_dig_alg field properly based on the signing key type. [Steve Henson] *) Allow PKCS#12 password to be set from the command line or the *) Allow PKCS#12 password to be set from the command line or the environment. Let 'ca' get its config file name from the environment environment. Let 'ca' get its config file name from the environment variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req' variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req' Loading
crypto/asn1/a_type.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -293,7 +293,7 @@ int ASN1_TYPE_get(ASN1_TYPE *a) return(0); return(0); } } void ASN1_TYPE_set(ASN1_TYPE *a, int type, char *value) void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value) { { if (a->value.ptr != NULL) if (a->value.ptr != NULL) ASN1_TYPE_component_free(a); ASN1_TYPE_component_free(a); Loading
crypto/asn1/asn1.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -488,7 +488,7 @@ void ASN1_TYPE_free(ASN1_TYPE *a); int i2d_ASN1_TYPE(ASN1_TYPE *a,unsigned char **pp); int i2d_ASN1_TYPE(ASN1_TYPE *a,unsigned char **pp); ASN1_TYPE * d2i_ASN1_TYPE(ASN1_TYPE **a,unsigned char **pp,long length); ASN1_TYPE * d2i_ASN1_TYPE(ASN1_TYPE **a,unsigned char **pp,long length); int ASN1_TYPE_get(ASN1_TYPE *a); int ASN1_TYPE_get(ASN1_TYPE *a); void ASN1_TYPE_set(ASN1_TYPE *a, int type, char *value); void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); ASN1_OBJECT * ASN1_OBJECT_new(void ); ASN1_OBJECT * ASN1_OBJECT_new(void ); void ASN1_OBJECT_free(ASN1_OBJECT *a); void ASN1_OBJECT_free(ASN1_OBJECT *a); Loading
crypto/asn1/evp_asn1.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -67,7 +67,7 @@ int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len) if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0); if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0); if (!ASN1_OCTET_STRING_set(os,data,len)) return(0); if (!ASN1_OCTET_STRING_set(os,data,len)) return(0); ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,(char *)os); ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,os); return(1); return(1); } } Loading Loading @@ -124,7 +124,7 @@ int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, unsigned char *data, i2d_ASN1_INTEGER(&in,&p); i2d_ASN1_INTEGER(&in,&p); M_i2d_ASN1_OCTET_STRING(&os,&p); M_i2d_ASN1_OCTET_STRING(&os,&p); ASN1_TYPE_set(a,V_ASN1_SEQUENCE,(char *)osp); ASN1_TYPE_set(a,V_ASN1_SEQUENCE,osp); return(1); return(1); } } Loading
crypto/asn1/x_attrib.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -117,7 +117,7 @@ X509_ATTRIBUTE *d2i_X509_ATTRIBUTE(X509_ATTRIBUTE **a, unsigned char **pp, M_ASN1_D2I_Finish(a,X509_ATTRIBUTE_free,ASN1_F_D2I_X509_ATTRIBUTE); M_ASN1_D2I_Finish(a,X509_ATTRIBUTE_free,ASN1_F_D2I_X509_ATTRIBUTE); } } X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, char *value) X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value) { { X509_ATTRIBUTE *ret=NULL; X509_ATTRIBUTE *ret=NULL; ASN1_TYPE *val=NULL; ASN1_TYPE *val=NULL; Loading