diff options
author | simon <simon@FreeBSD.org> | 2007-05-22 20:28:19 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2007-05-22 20:28:19 +0000 |
commit | fbc9e8162048bbbe3391a0c64d99f912ba57e396 (patch) | |
tree | 0e7be0a862d589c28092a95b0baccd0eb2a85327 /crypto/openssl/crypto/ocsp | |
parent | 120998d9c24468f1979b6165d66eb68454004b7b (diff) | |
download | FreeBSD-src-fbc9e8162048bbbe3391a0c64d99f912ba57e396.zip FreeBSD-src-fbc9e8162048bbbe3391a0c64d99f912ba57e396.tar.gz |
Fix runtime crash in OpenSSL with "Illegal instruction" by making some
casts a bit less evil.
This was e.g. seen when using portsnap as:
Fetching snapshot tag from portsnap3.FreeBSD.org... Illegal instruction
Note the patch is slightly different from kan's original patch to
match style in the OpenSSL source files a bit better.
Submitted by: kan
Tested by: many
Diffstat (limited to 'crypto/openssl/crypto/ocsp')
-rw-r--r-- | crypto/openssl/crypto/ocsp/ocsp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/ocsp/ocsp.h b/crypto/openssl/crypto/ocsp/ocsp.h index 53f3364..858afa3 100644 --- a/crypto/openssl/crypto/ocsp/ocsp.h +++ b/crypto/openssl/crypto/ocsp/ocsp.h @@ -469,7 +469,7 @@ int OCSP_basic_sign(OCSP_BASICRESP *brsp, ASN1_STRING *ASN1_STRING_encode(ASN1_STRING *s, i2d_of_void *i2d, void *data, STACK_OF(ASN1_OBJECT) *sk); #define ASN1_STRING_encode_of(type,s,i2d,data,sk) \ -((ASN1_STRING *(*)(ASN1_STRING *,I2D_OF(type),type *,STACK_OF(ASN1_OBJECT) *))openssl_fcast(ASN1_STRING_encode))(s,i2d,data,sk) +(ASN1_STRING_encode((s), (i2d_of_void *)(i2d), (data), (STACK_OF(ASN1_OBJECT) *)(sk))) X509_EXTENSION *OCSP_crlID_new(char *url, long *n, char *tim); |