编程习惯

体会下面两种写法的区别:

1 SSL_METHOD *method;
2 SSL_CTX *ctx;
3 OpenSSL_add_all_algorithms(); 
4 SSL_load_error_strings();  
5 method = SSLv3_server_method(); 
6 ctx = SSL_CTX_new(method);   
1 SSL_CTX *ctx;
2 OpenSSL_add_all_algorithms();
3 SSL_load_error_strings();
4 ctx = SSL_CTX_new(SSLv23_server_method());

 

posted @ 2017-11-30 14:12  glob  阅读(126)  评论(0编辑  收藏  举报