Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
MergeDate: Tue Mar 24 17:06:57 2026
(Merged from https://github.com/openssl/openssl/pull/29074)
ctx->revocationReason = val;
break;
default:
- ERR_raise(ERR_LIB_CMP, CMP_R_INVALID_OPTION);
+ ERR_raise_data(ERR_LIB_CMP, CMP_R_INVALID_OPTION, "%d", opt);
return 0;
}
case OSSL_CMP_OPT_REVOCATION_REASON:
return ctx->revocationReason;
default:
- ERR_raise(ERR_LIB_CMP, CMP_R_INVALID_OPTION);
+ ERR_raise_data(ERR_LIB_CMP, CMP_R_INVALID_OPTION, "%d", opt);
return -1;
}
}