1*f5b1c8a1SJohn Marino /* $OpenBSD: ossl_typ.h,v 1.12 2014/06/12 15:49:27 deraadt Exp $ */ 2*f5b1c8a1SJohn Marino /* ==================================================================== 3*f5b1c8a1SJohn Marino * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 4*f5b1c8a1SJohn Marino * 5*f5b1c8a1SJohn Marino * Redistribution and use in source and binary forms, with or without 6*f5b1c8a1SJohn Marino * modification, are permitted provided that the following conditions 7*f5b1c8a1SJohn Marino * are met: 8*f5b1c8a1SJohn Marino * 9*f5b1c8a1SJohn Marino * 1. Redistributions of source code must retain the above copyright 10*f5b1c8a1SJohn Marino * notice, this list of conditions and the following disclaimer. 11*f5b1c8a1SJohn Marino * 12*f5b1c8a1SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 13*f5b1c8a1SJohn Marino * notice, this list of conditions and the following disclaimer in 14*f5b1c8a1SJohn Marino * the documentation and/or other materials provided with the 15*f5b1c8a1SJohn Marino * distribution. 16*f5b1c8a1SJohn Marino * 17*f5b1c8a1SJohn Marino * 3. All advertising materials mentioning features or use of this 18*f5b1c8a1SJohn Marino * software must display the following acknowledgment: 19*f5b1c8a1SJohn Marino * "This product includes software developed by the OpenSSL Project 20*f5b1c8a1SJohn Marino * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 21*f5b1c8a1SJohn Marino * 22*f5b1c8a1SJohn Marino * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 23*f5b1c8a1SJohn Marino * endorse or promote products derived from this software without 24*f5b1c8a1SJohn Marino * prior written permission. For written permission, please contact 25*f5b1c8a1SJohn Marino * openssl-core@openssl.org. 26*f5b1c8a1SJohn Marino * 27*f5b1c8a1SJohn Marino * 5. Products derived from this software may not be called "OpenSSL" 28*f5b1c8a1SJohn Marino * nor may "OpenSSL" appear in their names without prior written 29*f5b1c8a1SJohn Marino * permission of the OpenSSL Project. 30*f5b1c8a1SJohn Marino * 31*f5b1c8a1SJohn Marino * 6. Redistributions of any form whatsoever must retain the following 32*f5b1c8a1SJohn Marino * acknowledgment: 33*f5b1c8a1SJohn Marino * "This product includes software developed by the OpenSSL Project 34*f5b1c8a1SJohn Marino * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 35*f5b1c8a1SJohn Marino * 36*f5b1c8a1SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 37*f5b1c8a1SJohn Marino * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 38*f5b1c8a1SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 39*f5b1c8a1SJohn Marino * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 40*f5b1c8a1SJohn Marino * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 41*f5b1c8a1SJohn Marino * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 42*f5b1c8a1SJohn Marino * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 43*f5b1c8a1SJohn Marino * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44*f5b1c8a1SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 45*f5b1c8a1SJohn Marino * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 46*f5b1c8a1SJohn Marino * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 47*f5b1c8a1SJohn Marino * OF THE POSSIBILITY OF SUCH DAMAGE. 48*f5b1c8a1SJohn Marino * ==================================================================== 49*f5b1c8a1SJohn Marino * 50*f5b1c8a1SJohn Marino * This product includes cryptographic software written by Eric Young 51*f5b1c8a1SJohn Marino * (eay@cryptsoft.com). This product includes software written by Tim 52*f5b1c8a1SJohn Marino * Hudson (tjh@cryptsoft.com). 53*f5b1c8a1SJohn Marino * 54*f5b1c8a1SJohn Marino */ 55*f5b1c8a1SJohn Marino 56*f5b1c8a1SJohn Marino #ifndef HEADER_OPENSSL_TYPES_H 57*f5b1c8a1SJohn Marino #define HEADER_OPENSSL_TYPES_H 58*f5b1c8a1SJohn Marino 59*f5b1c8a1SJohn Marino #include <openssl/opensslconf.h> 60*f5b1c8a1SJohn Marino 61*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_INTEGER; 62*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_ENUMERATED; 63*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_BIT_STRING; 64*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_OCTET_STRING; 65*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_PRINTABLESTRING; 66*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_T61STRING; 67*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_IA5STRING; 68*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_GENERALSTRING; 69*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_UNIVERSALSTRING; 70*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_BMPSTRING; 71*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_UTCTIME; 72*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_TIME; 73*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_GENERALIZEDTIME; 74*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_VISIBLESTRING; 75*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_UTF8STRING; 76*f5b1c8a1SJohn Marino typedef struct asn1_string_st ASN1_STRING; 77*f5b1c8a1SJohn Marino typedef int ASN1_BOOLEAN; 78*f5b1c8a1SJohn Marino typedef int ASN1_NULL; 79*f5b1c8a1SJohn Marino 80*f5b1c8a1SJohn Marino typedef struct ASN1_ITEM_st ASN1_ITEM; 81*f5b1c8a1SJohn Marino typedef struct asn1_pctx_st ASN1_PCTX; 82*f5b1c8a1SJohn Marino 83*f5b1c8a1SJohn Marino #if defined(_WIN32) && defined(__WINCRYPT_H__) 84*f5b1c8a1SJohn Marino #ifndef LIBRESSL_INTERNAL 85*f5b1c8a1SJohn Marino #ifdef _MSC_VER 86*f5b1c8a1SJohn Marino #pragma message("Warning, overriding WinCrypt defines") 87*f5b1c8a1SJohn Marino #else 88*f5b1c8a1SJohn Marino #warning overriding WinCrypt defines 89*f5b1c8a1SJohn Marino #endif 90*f5b1c8a1SJohn Marino #endif 91*f5b1c8a1SJohn Marino #undef X509_NAME 92*f5b1c8a1SJohn Marino #undef X509_CERT_PAIR 93*f5b1c8a1SJohn Marino #undef X509_EXTENSIONS 94*f5b1c8a1SJohn Marino #undef OCSP_REQUEST 95*f5b1c8a1SJohn Marino #undef OCSP_RESPONSE 96*f5b1c8a1SJohn Marino #undef PKCS7_ISSUER_AND_SERIAL 97*f5b1c8a1SJohn Marino #endif 98*f5b1c8a1SJohn Marino 99*f5b1c8a1SJohn Marino #ifdef BIGNUM 100*f5b1c8a1SJohn Marino #undef BIGNUM 101*f5b1c8a1SJohn Marino #endif 102*f5b1c8a1SJohn Marino typedef struct bignum_st BIGNUM; 103*f5b1c8a1SJohn Marino typedef struct bignum_ctx BN_CTX; 104*f5b1c8a1SJohn Marino typedef struct bn_blinding_st BN_BLINDING; 105*f5b1c8a1SJohn Marino typedef struct bn_mont_ctx_st BN_MONT_CTX; 106*f5b1c8a1SJohn Marino typedef struct bn_recp_ctx_st BN_RECP_CTX; 107*f5b1c8a1SJohn Marino typedef struct bn_gencb_st BN_GENCB; 108*f5b1c8a1SJohn Marino 109*f5b1c8a1SJohn Marino typedef struct buf_mem_st BUF_MEM; 110*f5b1c8a1SJohn Marino 111*f5b1c8a1SJohn Marino typedef struct evp_cipher_st EVP_CIPHER; 112*f5b1c8a1SJohn Marino typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; 113*f5b1c8a1SJohn Marino typedef struct env_md_st EVP_MD; 114*f5b1c8a1SJohn Marino typedef struct env_md_ctx_st EVP_MD_CTX; 115*f5b1c8a1SJohn Marino typedef struct evp_pkey_st EVP_PKEY; 116*f5b1c8a1SJohn Marino 117*f5b1c8a1SJohn Marino typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; 118*f5b1c8a1SJohn Marino 119*f5b1c8a1SJohn Marino typedef struct evp_pkey_method_st EVP_PKEY_METHOD; 120*f5b1c8a1SJohn Marino typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; 121*f5b1c8a1SJohn Marino 122*f5b1c8a1SJohn Marino typedef struct dh_st DH; 123*f5b1c8a1SJohn Marino typedef struct dh_method DH_METHOD; 124*f5b1c8a1SJohn Marino 125*f5b1c8a1SJohn Marino typedef struct dsa_st DSA; 126*f5b1c8a1SJohn Marino typedef struct dsa_method DSA_METHOD; 127*f5b1c8a1SJohn Marino 128*f5b1c8a1SJohn Marino typedef struct rsa_st RSA; 129*f5b1c8a1SJohn Marino typedef struct rsa_meth_st RSA_METHOD; 130*f5b1c8a1SJohn Marino 131*f5b1c8a1SJohn Marino typedef struct rand_meth_st RAND_METHOD; 132*f5b1c8a1SJohn Marino 133*f5b1c8a1SJohn Marino typedef struct ecdh_method ECDH_METHOD; 134*f5b1c8a1SJohn Marino typedef struct ecdsa_method ECDSA_METHOD; 135*f5b1c8a1SJohn Marino 136*f5b1c8a1SJohn Marino typedef struct x509_st X509; 137*f5b1c8a1SJohn Marino typedef struct X509_algor_st X509_ALGOR; 138*f5b1c8a1SJohn Marino typedef struct X509_crl_st X509_CRL; 139*f5b1c8a1SJohn Marino typedef struct x509_crl_method_st X509_CRL_METHOD; 140*f5b1c8a1SJohn Marino typedef struct x509_revoked_st X509_REVOKED; 141*f5b1c8a1SJohn Marino typedef struct X509_name_st X509_NAME; 142*f5b1c8a1SJohn Marino typedef struct X509_pubkey_st X509_PUBKEY; 143*f5b1c8a1SJohn Marino typedef struct x509_store_st X509_STORE; 144*f5b1c8a1SJohn Marino typedef struct x509_store_ctx_st X509_STORE_CTX; 145*f5b1c8a1SJohn Marino 146*f5b1c8a1SJohn Marino typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO; 147*f5b1c8a1SJohn Marino 148*f5b1c8a1SJohn Marino typedef struct v3_ext_ctx X509V3_CTX; 149*f5b1c8a1SJohn Marino typedef struct conf_st CONF; 150*f5b1c8a1SJohn Marino 151*f5b1c8a1SJohn Marino typedef struct store_st STORE; 152*f5b1c8a1SJohn Marino typedef struct store_method_st STORE_METHOD; 153*f5b1c8a1SJohn Marino 154*f5b1c8a1SJohn Marino typedef struct ui_st UI; 155*f5b1c8a1SJohn Marino typedef struct ui_method_st UI_METHOD; 156*f5b1c8a1SJohn Marino 157*f5b1c8a1SJohn Marino typedef struct st_ERR_FNS ERR_FNS; 158*f5b1c8a1SJohn Marino 159*f5b1c8a1SJohn Marino typedef struct engine_st ENGINE; 160*f5b1c8a1SJohn Marino typedef struct ssl_st SSL; 161*f5b1c8a1SJohn Marino typedef struct ssl_ctx_st SSL_CTX; 162*f5b1c8a1SJohn Marino 163*f5b1c8a1SJohn Marino typedef struct X509_POLICY_NODE_st X509_POLICY_NODE; 164*f5b1c8a1SJohn Marino typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL; 165*f5b1c8a1SJohn Marino typedef struct X509_POLICY_TREE_st X509_POLICY_TREE; 166*f5b1c8a1SJohn Marino typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE; 167*f5b1c8a1SJohn Marino 168*f5b1c8a1SJohn Marino typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID; 169*f5b1c8a1SJohn Marino typedef struct DIST_POINT_st DIST_POINT; 170*f5b1c8a1SJohn Marino typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT; 171*f5b1c8a1SJohn Marino typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS; 172*f5b1c8a1SJohn Marino 173*f5b1c8a1SJohn Marino /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */ 174*f5b1c8a1SJohn Marino #define DECLARE_PKCS12_STACK_OF(type) /* Nothing */ 175*f5b1c8a1SJohn Marino #define IMPLEMENT_PKCS12_STACK_OF(type) /* Nothing */ 176*f5b1c8a1SJohn Marino 177*f5b1c8a1SJohn Marino typedef struct crypto_ex_data_st CRYPTO_EX_DATA; 178*f5b1c8a1SJohn Marino /* Callback types for crypto.h */ 179*f5b1c8a1SJohn Marino typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, 180*f5b1c8a1SJohn Marino int idx, long argl, void *argp); 181*f5b1c8a1SJohn Marino typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, 182*f5b1c8a1SJohn Marino int idx, long argl, void *argp); 183*f5b1c8a1SJohn Marino typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, 184*f5b1c8a1SJohn Marino void *from_d, int idx, long argl, void *argp); 185*f5b1c8a1SJohn Marino 186*f5b1c8a1SJohn Marino typedef struct ocsp_req_ctx_st OCSP_REQ_CTX; 187*f5b1c8a1SJohn Marino typedef struct ocsp_response_st OCSP_RESPONSE; 188*f5b1c8a1SJohn Marino typedef struct ocsp_responder_id_st OCSP_RESPID; 189*f5b1c8a1SJohn Marino 190*f5b1c8a1SJohn Marino #endif /* def HEADER_OPENSSL_TYPES_H */ 191