Loading crypto/evp/pmeth_fn.c +16 −19 Original line number Diff line number Diff line Loading @@ -15,21 +15,18 @@ #include "internal/evp_int.h" #define M_check_autoarg(ctx, arg, arglen, err) \ if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) \ { \ if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \ size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \ if (pksize == 0) \ { \ \ if (pksize == 0) { \ EVPerr(err, EVP_R_INVALID_KEY); /*ckerr_ignore*/ \ return 0; \ } \ else if (!arg) \ { \ if (!arg) { \ *arglen = pksize; \ return 1; \ } \ else if (*arglen < pksize) \ { \ if (*arglen < pksize) { \ EVPerr(err, EVP_R_BUFFER_TOO_SMALL); /*ckerr_ignore*/ \ return 0; \ } \ Loading Loading
crypto/evp/pmeth_fn.c +16 −19 Original line number Diff line number Diff line Loading @@ -15,21 +15,18 @@ #include "internal/evp_int.h" #define M_check_autoarg(ctx, arg, arglen, err) \ if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) \ { \ if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \ size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \ if (pksize == 0) \ { \ \ if (pksize == 0) { \ EVPerr(err, EVP_R_INVALID_KEY); /*ckerr_ignore*/ \ return 0; \ } \ else if (!arg) \ { \ if (!arg) { \ *arglen = pksize; \ return 1; \ } \ else if (*arglen < pksize) \ { \ if (*arglen < pksize) { \ EVPerr(err, EVP_R_BUFFER_TOO_SMALL); /*ckerr_ignore*/ \ return 0; \ } \ Loading