--- libressl-2.7.4.old/crypto/evp/evp_enc.c +++ libressl-2.7.4/crypto/evp/evp_enc.c @@ -245,8 +245,10 @@ return EVP_DecryptFinal_ex(ctx, out, outl); } +#ifdef NOTDEF __warn_references(EVP_CipherFinal, "EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup"); +#endif int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) @@ -355,8 +357,10 @@ return 1; } +#ifdef NOTDEF __warn_references(EVP_EncryptFinal, "EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup"); +#endif int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) @@ -470,8 +474,10 @@ return 1; } +#ifdef NOTDEF __warn_references(EVP_DecryptFinal, "EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup"); +#endif int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)