X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcryptlib.h;h=d26f9630eade8a69e59def9922b84615bfcbbe8c;hp=cce9a999f31bff5bced4acc8dda8b4f352b22c7f;hb=daddd9a950e491c31f9500d5e570bc7eb96b2823;hpb=b7896b3cb86d80206af14a14d69b0717786f2729 diff --git a/crypto/cryptlib.h b/crypto/cryptlib.h index cce9a999f3..d26f9630ea 100644 --- a/crypto/cryptlib.h +++ b/crypto/cryptlib.h @@ -1,5 +1,5 @@ /* crypto/cryptlib.h */ -/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written @@ -62,35 +62,48 @@ #include #include -#ifdef __cplusplus -extern "C" { +#include "e_os.h" + +#ifdef OPENSSL_USE_APPLINK +#define BIO_FLAGS_UPLINK 0x8000 +#include "ms/uplink.h" #endif -#ifdef FLAT_INC +#include +#include +#include +#include +#include -#include "e_os.h" -#include "crypto.h" -#include "buffer.h" -#include "bio.h" -#include "err.h" +#ifdef __cplusplus +extern "C" { +#endif +#ifndef OPENSSL_SYS_VMS +#define X509_CERT_AREA OPENSSLDIR +#define X509_CERT_DIR OPENSSLDIR "/certs" +#define X509_CERT_FILE OPENSSLDIR "/cert.pem" +#define X509_PRIVATE_DIR OPENSSLDIR "/private" #else - -#include "../e_os.h" -#include "crypto.h" -#include "buffer/buffer.h" -#include "bio/bio.h" -#include "err/err.h" +#define X509_CERT_AREA "SSLROOT:[000000]" +#define X509_CERT_DIR "SSLCERTS:" +#define X509_CERT_FILE "SSLCERTS:cert.pem" +#define X509_PRIVATE_DIR "SSLPRIVATE:" #endif -#define X509_CERT_AREA "/usr/local/ssl" -#define X509_CERT_DIR "/usr/local/ssl/certs" -#define X509_CERT_FILE "/usr/local/ssl/cert.pem" -#define X509_PRIVATE_DIR "/usr/local/ssl/private" - #define X509_CERT_DIR_EVP "SSL_CERT_DIR" #define X509_CERT_FILE_EVP "SSL_CERT_FILE" +/* size of string representations */ +#define DECIMAL_SIZE(type) ((sizeof(type)*8+2)/3+1) +#define HEX_SIZE(type) (sizeof(type)*2) + +void OPENSSL_cpuid_setup(void); +extern unsigned int OPENSSL_ia32cap_P[]; +void OPENSSL_showfatal(const char *fmta,...); +void *OPENSSL_stderr(void); +extern int OPENSSL_NONPIC_relocated; + #ifdef __cplusplus } #endif