Changes in / [17cc2fe:f8d2cff]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
README.md
r17cc2fe rf8d2cff 1 1 # BitlBee 2 2 3 ![](http s://www.bitlbee.org/style/logo.png)3 ![](http://bitlbee.org/style/logo.png) 4 4 5 5 [![Build Status](https://travis-ci.org/bitlbee/bitlbee.svg)](https://travis-ci.org/bitlbee/bitlbee) … … 8 8 An IRC to other chat networks gateway 9 9 10 Main website: http s://www.bitlbee.org/10 Main website: http://www.bitlbee.org/ 11 11 12 Bug tracker: http s://bugs.bitlbee.org/12 Bug tracker: http://bugs.bitlbee.org/ 13 13 14 Wiki: http s://wiki.bitlbee.org/14 Wiki: http://wiki.bitlbee.org/ 15 15 16 16 License: GPLv2 … … 20 20 BitlBee is available in the package managers of most distros. 21 21 22 For debian/ubuntu/etc you may use the nightly APT repository: http s://code.bitlbee.org/debian/22 For debian/ubuntu/etc you may use the nightly APT repository: http://code.bitlbee.org/debian/ 23 23 24 You can also use a public server (such as `im.bitlbee.org`) instead of installing it: http s://www.bitlbee.org/main.php/servers.html24 You can also use a public server (such as `im.bitlbee.org`) instead of installing it: http://bitlbee.org/main.php/servers.html 25 25 26 26 ## Compiling -
lib/ssl_openssl.c
r17cc2fe rf8d2cff 65 65 const SSL_METHOD *meth; 66 66 67 #if OPENSSL_VERSION_NUMBER < 0x10100000L68 67 SSL_library_init(); 69 68 … … 71 70 ssl_ctx = SSL_CTX_new(meth); 72 71 SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); 73 #else74 meth = TLS_client_method();75 ssl_ctx = SSL_CTX_new(meth);76 SSL_CTX_set_min_proto_version(ssl_ctx, TLS1_VERSION);77 #endif78 72 79 73 initialized = TRUE; … … 307 301 { 308 302 int output_length = 0; 309 EVP_CIPHER_CTX *ctx;303 EVP_CIPHER_CTX ctx; 310 304 311 305 *res = g_new0(unsigned char, 72); 312 306 313 307 /* Don't set key or IV because we will modify the parameters */ 314 ctx = EVP_CIPHER_CTX_new();315 EVP_CipherInit_ex( ctx, EVP_des_ede3_cbc(), NULL, NULL, NULL, 1);316 EVP_CIPHER_CTX_set_key_length( ctx, key_len);317 EVP_CIPHER_CTX_set_padding( ctx, 0);308 EVP_CIPHER_CTX_init(&ctx); 309 EVP_CipherInit_ex(&ctx, EVP_des_ede3_cbc(), NULL, NULL, NULL, 1); 310 EVP_CIPHER_CTX_set_key_length(&ctx, key_len); 311 EVP_CIPHER_CTX_set_padding(&ctx, 0); 318 312 /* We finished modifying parameters so now we can set key and IV */ 319 EVP_CipherInit_ex( ctx, NULL, NULL, key, iv, 1);320 EVP_CipherUpdate( ctx, *res, &output_length, input, input_len);321 EVP_CipherFinal_ex( ctx, *res, &output_length);322 EVP_CIPHER_CTX_ free(ctx);313 EVP_CipherInit_ex(&ctx, NULL, NULL, key, iv, 1); 314 EVP_CipherUpdate(&ctx, *res, &output_length, input, input_len); 315 EVP_CipherFinal_ex(&ctx, *res, &output_length); 316 EVP_CIPHER_CTX_cleanup(&ctx); 323 317 //EVP_cleanup(); 324 318
Note: See TracChangeset
for help on using the changeset viewer.