Changeset 14576
- Timestamp:
- Oct 14, 2015, 8:22:17 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/crypto-utils-openssl.c
r14575 r14576 148 148 openssl_evp_cipher_context_new (void) 149 149 { 150 EVP_CIPHER_CTX * ctx= tr_new (EVP_CIPHER_CTX, 1);151 if ( ctx!= NULL)152 EVP_CIPHER_CTX_init ( ctx);153 return ctx;150 EVP_CIPHER_CTX * handle = tr_new (EVP_CIPHER_CTX, 1); 151 if (handle != NULL) 152 EVP_CIPHER_CTX_init (handle); 153 return handle; 154 154 } 155 155 156 156 static void 157 openssl_evp_cipher_context_free (EVP_CIPHER_CTX * ctx)158 { 159 if ( ctx)160 {161 EVP_CIPHER_CTX_cleanup (ctx); 162 tr_free (ctx);163 }157 openssl_evp_cipher_context_free (EVP_CIPHER_CTX * handle) 158 { 159 if (handle == NULL) 160 return; 161 162 EVP_CIPHER_CTX_cleanup (handle); 163 tr_free (handle); 164 164 } 165 165
Note: See TracChangeset
for help on using the changeset viewer.