VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/include/crypto/pem.h@ 98133

最後變更 在這個檔案從98133是 97984,由 vboxsync 提交於 2 年 前

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

檔案大小: 2.1 KB
 
1/*
2 * Copyright 2018-2022 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_PEM_H
11# define OSSL_INTERNAL_PEM_H
12# ifndef RT_WITHOUT_PRAGMA_ONCE /* VBOX */
13# pragma once
14# endif /* VBOX */
15
16# include <openssl/pem.h>
17# include "crypto/types.h"
18
19/* Found in crypto/pem/pvkfmt.c */
20
21/* Maximum length of a blob after header */
22# define BLOB_MAX_LENGTH 102400
23
24int ossl_do_blob_header(const unsigned char **in, unsigned int length,
25 unsigned int *pmagic, unsigned int *pbitlen,
26 int *pisdss, int *pispub);
27unsigned int ossl_blob_length(unsigned bitlen, int isdss, int ispub);
28int ossl_do_PVK_header(const unsigned char **in, unsigned int length,
29 int skip_magic,
30 unsigned int *psaltlen, unsigned int *pkeylen);
31# ifndef OPENSSL_NO_DEPRECATED_3_0
32# ifndef OPENSSL_NO_DSA
33DSA *ossl_b2i_DSA_after_header(const unsigned char **in, unsigned int bitlen,
34 int ispub);
35# endif
36RSA *ossl_b2i_RSA_after_header(const unsigned char **in, unsigned int bitlen,
37 int ispub);
38# endif
39EVP_PKEY *ossl_b2i(const unsigned char **in, unsigned int length, int *ispub);
40EVP_PKEY *ossl_b2i_bio(BIO *in, int *ispub);
41
42# ifndef OPENSSL_NO_DEPRECATED_3_0
43# ifndef OPENSSL_NO_DSA
44DSA *b2i_DSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u);
45DSA *b2i_DSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u,
46 OSSL_LIB_CTX *libctx, const char *propq);
47# endif
48RSA *b2i_RSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u);
49RSA *b2i_RSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u,
50 OSSL_LIB_CTX *libctx, const char *propq);
51# endif
52
53#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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