Adjust openssl error handling to latest release 53/306453/1
authorDariusz Michaluk <d.michaluk@samsung.com>
Wed, 21 Feb 2024 12:29:07 +0000 (13:29 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 21 Feb 2024 12:35:04 +0000 (13:35 +0100)
Change-Id: I90b63bb4610ef02904b4f048e0259f72ff39b6ef

src/manager/common/openssl-error-handler.cpp

index 585df58..c824463 100644 (file)
@@ -141,6 +141,7 @@ void errorHandle(const char *file, int line, const char *function, int openssl_r
        case ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ALGORITHM_MISMATCH):
        case ERR_PACK(ERR_LIB_PROV, 0, PROV_R_OUTPUT_BUFFER_TOO_SMALL):
        case ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_DECRYPT):
+       case ERR_PACK(ERR_LIB_OSSL_DECODER, 0, ERR_R_UNSUPPORTED):
                ret = CKM_API_ERROR_INPUT_PARAM;
                break;
        case ERR_PACK(ERR_LIB_X509, 0, X509_R_NO_CERT_SET_FOR_US_TO_VERIFY):