1
0
Fork 0

use empty()

This commit is contained in:
Jan Steemann 2015-12-11 17:20:12 +01:00
parent a2940b20ca
commit caab98de0a
1 changed files with 2 additions and 1 deletions

View File

@ -478,9 +478,10 @@ bool ApplicationEndpointServer::createSslContext () {
// set options
SSL_CTX_set_options(_sslContext, (long) _sslOptions);
LOG_INFO("using SSL options: %ld", (long) _sslOptions);
if (_sslCipherList.size() > 0) {
if (! _sslCipherList.empty()) {
if (SSL_CTX_set_cipher_list(_sslContext, _sslCipherList.c_str()) != 1) {
LOG_ERROR("SSL error: %s", lastSSLError().c_str());
LOG_FATAL_AND_EXIT("cannot set SSL cipher list '%s'", _sslCipherList.c_str());