Handle special cases correctly in exponentation functions.
[openssl.git] / crypto / cryptlib.h
index cce9a999f31bff5bced4acc8dda8b4f352b22c7f..5eff5d31412e53d3f6bea3f340cf3bed95e5b78b 100644 (file)
@@ -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
 #include <stdlib.h>
 #include <string.h>
 
+#include "openssl/e_os.h"
+
+#include <openssl/crypto.h>
+#include <openssl/buffer.h> 
+#include <openssl/bio.h> 
+#include <openssl/err.h>
+#include <openssl/opensslconf.h>
+
 #ifdef  __cplusplus
 extern "C" {
 #endif
 
-#ifdef FLAT_INC
-
-#include "e_os.h"
-#include "crypto.h"
-#include "buffer.h" 
-#include "bio.h" 
-#include "err.h"
-
+#ifndef 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"