102 return NULL; |
102 return NULL; |
103 } |
103 } |
104 SSL_CTX_set_options( |
104 SSL_CTX_set_options( |
105 ctx, |
105 ctx, |
106 SSL_OP_SINGLE_DH_USE | SSL_OP_NO_SSLv3); |
106 SSL_OP_SINGLE_DH_USE | SSL_OP_NO_SSLv3); |
|
107 SSL_CTX_set_mode(ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER); |
|
108 SSL_CTX_set_mode(ctx, SSL_MODE_ENABLE_PARTIAL_WRITE); |
107 |
109 |
108 int error = 0; |
110 int error = 0; |
109 if(conf->disable_proto.ptr) { |
111 if(conf->disable_proto.ptr) { |
110 cxstring *plist = NULL; |
112 cxstring *plist = NULL; |
111 ssize_t n = cx_strsplit_a(cxDefaultAllocator, conf->disable_proto, cx_str(","), LISTENER_MAX_PROTOCOL_TOKENS, &plist); |
113 ssize_t n = cx_strsplit_a(cxDefaultAllocator, conf->disable_proto, cx_str(","), LISTENER_MAX_PROTOCOL_TOKENS, &plist); |