X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcryptlib.h;h=0d6b9d59f0b1896a31cb1276496db8122aa348af;hp=e3d38524ae9cd6cac5cad817ed8923cabb428f56;hb=8845420f4e030092f89261510e8b65043d692cce;hpb=7e701817234ff2be2a745fc63f32ccb5e874854c diff --git a/crypto/cryptlib.h b/crypto/cryptlib.h index e3d38524ae..0d6b9d59f0 100644 --- a/crypto/cryptlib.h +++ b/crypto/cryptlib.h @@ -62,11 +62,7 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - -#include "openssl/e_os.h" +#include "e_os.h" #include #include @@ -74,7 +70,11 @@ extern "C" { #include #include -#ifndef VMS +#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" @@ -89,6 +89,10 @@ extern "C" { #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) + #ifdef __cplusplus } #endif