diff options
author | beck <> | 2014-04-17 13:37:50 +0000 |
---|---|---|
committer | beck <> | 2014-04-17 13:37:50 +0000 |
commit | bddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch) | |
tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/x509/x509_vfy.c | |
parent | ecec66222d758996a4ff2671ca5026d9ede5ef76 (diff) | |
download | openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.gz openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.bz2 openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.zip |
Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index a82c2872e0..077bfd8f2d 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
@@ -1986,7 +1986,7 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, | |||
1986 | X509_STORE_CTX *X509_STORE_CTX_new(void) | 1986 | X509_STORE_CTX *X509_STORE_CTX_new(void) |
1987 | { | 1987 | { |
1988 | X509_STORE_CTX *ctx; | 1988 | X509_STORE_CTX *ctx; |
1989 | ctx = (X509_STORE_CTX *)OPENSSL_malloc(sizeof(X509_STORE_CTX)); | 1989 | ctx = (X509_STORE_CTX *)malloc(sizeof(X509_STORE_CTX)); |
1990 | if (!ctx) | 1990 | if (!ctx) |
1991 | { | 1991 | { |
1992 | X509err(X509_F_X509_STORE_CTX_NEW,ERR_R_MALLOC_FAILURE); | 1992 | X509err(X509_F_X509_STORE_CTX_NEW,ERR_R_MALLOC_FAILURE); |
@@ -1999,7 +1999,7 @@ X509_STORE_CTX *X509_STORE_CTX_new(void) | |||
1999 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx) | 1999 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx) |
2000 | { | 2000 | { |
2001 | X509_STORE_CTX_cleanup(ctx); | 2001 | X509_STORE_CTX_cleanup(ctx); |
2002 | OPENSSL_free(ctx); | 2002 | free(ctx); |
2003 | } | 2003 | } |
2004 | 2004 | ||
2005 | int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, | 2005 | int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, |
@@ -2122,7 +2122,7 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, | |||
2122 | if(!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE_CTX, ctx, | 2122 | if(!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE_CTX, ctx, |
2123 | &(ctx->ex_data))) | 2123 | &(ctx->ex_data))) |
2124 | { | 2124 | { |
2125 | OPENSSL_free(ctx); | 2125 | free(ctx); |
2126 | X509err(X509_F_X509_STORE_CTX_INIT,ERR_R_MALLOC_FAILURE); | 2126 | X509err(X509_F_X509_STORE_CTX_INIT,ERR_R_MALLOC_FAILURE); |
2127 | return 0; | 2127 | return 0; |
2128 | } | 2128 | } |