VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/include/internal/param_build_set.h@ 100620

Last change on this file since 100620 was 97984, checked in by vboxsync, 2 years ago

libs/openssl-3.0.7: Shut up pragma once warnings for internal headers. Added sed script for doing that. bugref:10317

File size: 2.2 KB
Line 
1/*
2 * Copyright 2020-2021 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#ifndef OSSL_INTERNAL_PARAM_BUILD_SET_H
11# define OSSL_INTERNAL_PARAM_BUILD_SET_H
12# ifndef RT_WITHOUT_PRAGMA_ONCE /* VBOX */
13# pragma once
14# endif /* VBOX */
15
16# include <openssl/safestack.h>
17# include <openssl/param_build.h>
18# include "internal/cryptlib.h"
19
20typedef union {
21 OSSL_UNION_ALIGN;
22} OSSL_PARAM_ALIGNED_BLOCK;
23
24# define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
25
26size_t ossl_param_bytes_to_blocks(size_t bytes);
27void ossl_param_set_secure_block(OSSL_PARAM *last, void *secure_buffer,
28 size_t secure_buffer_sz);
29
30int ossl_param_build_set_int(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
31 const char *key, int num);
32int ossl_param_build_set_long(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
33 const char *key, long num);
34int ossl_param_build_set_utf8_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
35 const char *key, const char *buf);
36int ossl_param_build_set_octet_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
37 const char *key,
38 const unsigned char *data,
39 size_t data_len);
40int ossl_param_build_set_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
41 const char *key, const BIGNUM *bn);
42int ossl_param_build_set_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
43 const char *key, const BIGNUM *bn, size_t sz);
44int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
45 const char *names[],
46 STACK_OF(BIGNUM_const) *stk);
47
48#endif /* OSSL_INTERNAL_PARAM_BUILD_SET_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette