Fixed a typo
This commit is contained in:
parent
40c065c004
commit
c2bf9facd6
|
@ -93,7 +93,7 @@ static AppServerClient * _appserverclient_new(int fd, uint32_t addr,
|
||||||
if((asc->ssl = SSL_new(ssl_ctx)) == NULL
|
if((asc->ssl = SSL_new(ssl_ctx)) == NULL
|
||||||
|| SSL_set_fd(asc->ssl, fd) != 1)
|
|| SSL_set_fd(asc->ssl, fd) != 1)
|
||||||
{
|
{
|
||||||
return error_set_code(1, "%s", ERR_error_string(ERR_get_error(),
|
error_set_code(1, "%s", ERR_error_string(ERR_get_error(),
|
||||||
NULL));
|
NULL));
|
||||||
_appserverclient_delete(asc);
|
_appserverclient_delete(asc);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -375,6 +375,9 @@ AppServer * appserver_new_event(char const * app, int options, Event * event)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef WITH_SSL
|
#ifdef WITH_SSL
|
||||||
|
# ifdef DEBUG
|
||||||
|
fprintf(stderr, "DEBUG: AppServer using certificate \"%s\"\n", crt);
|
||||||
|
# endif
|
||||||
if((appserver->ssl_ctx = SSL_CTX_new(SSLv3_server_method())) == NULL
|
if((appserver->ssl_ctx = SSL_CTX_new(SSLv3_server_method())) == NULL
|
||||||
|| SSL_CTX_set_cipher_list(appserver->ssl_ctx,
|
|| SSL_CTX_set_cipher_list(appserver->ssl_ctx,
|
||||||
SSL_DEFAULT_CIPHER_LIST) != 1
|
SSL_DEFAULT_CIPHER_LIST) != 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user