Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:47

0001 /*
0002  * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
0003  * Copyright (c) 2019, Oracle and/or its affiliates.  All rights reserved.
0004  *
0005  * Licensed under the Apache License 2.0 (the "License").  You may not use
0006  * this file except in compliance with the License.  You can obtain a copy
0007  * in the file LICENSE in the source distribution or at
0008  * https://www.openssl.org/source/license.html
0009  */
0010 
0011 #ifndef OPENSSL_PARAM_BUILD_H
0012 # define OPENSSL_PARAM_BUILD_H
0013 # pragma once
0014 
0015 # include <openssl/params.h>
0016 # include <openssl/types.h>
0017 
0018 # ifdef __cplusplus
0019 extern "C" {
0020 # endif
0021 
0022 OSSL_PARAM_BLD *OSSL_PARAM_BLD_new(void);
0023 OSSL_PARAM *OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD *bld);
0024 void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld);
0025 
0026 int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int val);
0027 int OSSL_PARAM_BLD_push_uint(OSSL_PARAM_BLD *bld, const char *key,
0028                              unsigned int val);
0029 int OSSL_PARAM_BLD_push_long(OSSL_PARAM_BLD *bld, const char *key,
0030                              long int val);
0031 int OSSL_PARAM_BLD_push_ulong(OSSL_PARAM_BLD *bld, const char *key,
0032                               unsigned long int val);
0033 int OSSL_PARAM_BLD_push_int32(OSSL_PARAM_BLD *bld, const char *key,
0034                               int32_t val);
0035 int OSSL_PARAM_BLD_push_uint32(OSSL_PARAM_BLD *bld, const char *key,
0036                                uint32_t val);
0037 int OSSL_PARAM_BLD_push_int64(OSSL_PARAM_BLD *bld, const char *key,
0038                               int64_t val);
0039 int OSSL_PARAM_BLD_push_uint64(OSSL_PARAM_BLD *bld, const char *key,
0040                                uint64_t val);
0041 int OSSL_PARAM_BLD_push_size_t(OSSL_PARAM_BLD *bld, const char *key,
0042                                size_t val);
0043 int OSSL_PARAM_BLD_push_time_t(OSSL_PARAM_BLD *bld, const char *key,
0044                                time_t val);
0045 int OSSL_PARAM_BLD_push_double(OSSL_PARAM_BLD *bld, const char *key,
0046                                double val);
0047 int OSSL_PARAM_BLD_push_BN(OSSL_PARAM_BLD *bld, const char *key,
0048                            const BIGNUM *bn);
0049 int OSSL_PARAM_BLD_push_BN_pad(OSSL_PARAM_BLD *bld, const char *key,
0050                                const BIGNUM *bn, size_t sz);
0051 int OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD *bld, const char *key,
0052                                     const char *buf, size_t bsize);
0053 int OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD *bld, const char *key,
0054                                  char *buf, size_t bsize);
0055 int OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD *bld, const char *key,
0056                                      const void *buf, size_t bsize);
0057 int OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD *bld, const char *key,
0058                                   void *buf, size_t bsize);
0059 
0060 # ifdef __cplusplus
0061 }
0062 # endif
0063 #endif  /* OPENSSL_PARAM_BUILD_H */