diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2002-07-30 13:38:06 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2002-07-30 13:38:06 +0000 |
commit | 4f20a5a274060dda2bff055829db303415e2dd57 (patch) | |
tree | f3c141823975717e132c7687cf833f6378cc87d4 /crypto/openssl/crypto/cryptlib.h | |
parent | c1803d783676ddc1f7655e0a58c00f35ec8c4f45 (diff) | |
download | src-4f20a5a274060dda2bff055829db303415e2dd57.tar.gz src-4f20a5a274060dda2bff055829db303415e2dd57.zip |
Import of OpenSSL 0.9.6e.
Notes
Notes:
svn path=/vendor-crypto/openssl/dist/; revision=100936
Diffstat (limited to 'crypto/openssl/crypto/cryptlib.h')
-rw-r--r-- | crypto/openssl/crypto/cryptlib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/cryptlib.h b/crypto/openssl/crypto/cryptlib.h index 5eff5d31412e..576cbd6e3596 100644 --- a/crypto/openssl/crypto/cryptlib.h +++ b/crypto/openssl/crypto/cryptlib.h @@ -89,6 +89,14 @@ extern "C" { #define X509_CERT_DIR_EVP "SSL_CERT_DIR" #define X509_CERT_FILE_EVP "SSL_CERT_FILE" +/* size of string represenations */ +#define DECIMAL_SIZE(type) ((sizeof(type)*8+2)/3+1) +#define HEX_SIZE(type) ((sizeof(type)*2) + +/* die if we have to */ +void OpenSSLDie(const char *file,int line,const char *assertion); +#define die(e) ((e) ? (void)0 : OpenSSLDie(__FILE__, __LINE__, #e)) + #ifdef __cplusplus } #endif |