Fix CID 1454808: Error handling issues NEGATIVE_RETURNS (PKCS7_dataDecode())
[openssl.git] / include / internal / param_build_set.h
1 /*
2  * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #include <openssl/safestack.h>
11 #include <openssl/param_build.h>
12
13 int ossl_param_build_set_int(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
14                              const char *key, int num);
15 int ossl_param_build_set_utf8_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
16                                      const char *key, const char *buf);
17 int ossl_param_build_set_octet_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
18                                       const char *key,
19                                       const unsigned char *data,
20                                       size_t data_len);
21 int ossl_param_build_set_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
22                             const char *key, const BIGNUM *bn);
23 int ossl_param_build_set_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
24                                 const char *key, const BIGNUM *bn,  size_t sz);
25 int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
26                                       const char *names[],
27                                       STACK_OF(BIGNUM_const) *stk);