Changeset 50b8978
- Timestamp:
- 2010-08-13T09:12:54Z (14 years ago)
- Branches:
- master
- Children:
- 4e4af1b
- Parents:
- 91d6e91
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ssl_gnutls.c
r91d6e91 r50b8978 189 189 ssl_errno = SSL_AGAIN; 190 190 191 if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st ); 192 191 193 return st; 192 194 } … … 207 209 if( st == GNUTLS_E_AGAIN || st == GNUTLS_E_INTERRUPTED ) 208 210 ssl_errno = SSL_AGAIN; 211 212 if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st ); 209 213 210 214 return st; -
lib/ssl_openssl.c
r91d6e91 r50b8978 116 116 { 117 117 initialized = TRUE; 118 SSLeay_add_ssl_algorithms(); 118 SSL_library_init(); 119 //SSLeay_add_ssl_algorithms(); 120 //OpenSSL_add_all_algorithms(); 119 121 } 120 122 … … 205 207 } 206 208 209 if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st ); 210 207 211 return st; 208 212 } … … 219 223 220 224 st = SSL_write( ((struct scd*)conn)->ssl, buf, len ); 225 226 if( getenv( "BITLBEE_DEBUG" ) && st > 0 ) write( 1, buf, st ); 221 227 222 228 ssl_errno = SSL_OK; … … 275 281 size_t ssl_des3_encrypt(const unsigned char *key, size_t key_len, const unsigned char *input, size_t input_len, const unsigned char *iv, unsigned char **res) 276 282 { 277 OpenSSL_add_all_algorithms();278 283 int output_length = 0; 284 EVP_CIPHER_CTX ctx; 279 285 280 286 *res = g_new0(unsigned char, 72); 281 287 282 EVP_CIPHER_CTX ctx;283 288 /* Don't set key or IV because we will modify the parameters */ 284 289 EVP_CIPHER_CTX_init(&ctx); … … 290 295 EVP_CipherUpdate(&ctx, *res, &output_length, input, input_len); 291 296 EVP_CipherFinal_ex(&ctx, *res, &output_length); 292 293 297 EVP_CIPHER_CTX_cleanup(&ctx); 294 EVP_cleanup();298 //EVP_cleanup(); 295 299 296 300 return output_length;
Note: See TracChangeset
for help on using the changeset viewer.