openssl: Don't refer to EVP_des_ecb() if OpenSSL is built without DES support
While DES-ECB is not registered by the plugin in this case (so the function will never actually be called), the compiler still warns about the implicitly declared function.
This commit is contained in:
@@ -226,10 +226,12 @@ openssl_crypter_t *openssl_crypter_create(encryption_algorithm_t algo,
|
||||
return NULL;
|
||||
}
|
||||
break;
|
||||
#ifndef OPENSSL_NO_DES
|
||||
case ENCR_DES_ECB:
|
||||
key_size = 8;
|
||||
this->cipher = EVP_des_ecb();
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
{
|
||||
char* name;
|
||||
|
||||
Reference in New Issue
Block a user