Change #include filenames from <foo.h> to <openssl.h>. Submitted by: Reviewed by: PR:
diff --git a/ssl/Makefile.ssl b/ssl/Makefile.ssl index 882b6ed..5eb6bdc 100644 --- a/ssl/Makefile.ssl +++ b/ssl/Makefile.ssl
@@ -63,15 +63,15 @@ links: @$(TOP)/util/point.sh Makefile.ssl Makefile - @$(TOP)/util/mklink.sh ../include $(EXHEADER) + @$(TOP)/util/mklink.sh ../include/openssl $(EXHEADER) @$(TOP)/util/mklink.sh ../test $(TEST) @$(TOP)/util/mklink.sh ../apps $(APPS) install: @for i in $(EXHEADER) ; \ do \ - (cp $$i $(INSTALLTOP)/include/$$i; \ - chmod 644 $(INSTALLTOP)/include/$$i ); \ + (cp $$i $(INSTALLTOP)/include/openssl/$$i; \ + chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \ done; tags:
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c index ed08327..689f3a4 100644 --- a/ssl/bio_ssl.c +++ b/ssl/bio_ssl.c
@@ -60,10 +60,10 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include "crypto.h" -#include "bio.h" -#include "err.h" -#include "ssl.h" +#include <openssl/crypto.h> +#include <openssl/bio.h> +#include <openssl/err.h> +#include <openssl/ssl.h> #ifndef NOPROTO static int ssl_write(BIO *h,char *buf,int num);
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c index c7f85a6..5cbd99d 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c
@@ -57,10 +57,10 @@ */ #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> #include "ssl_locl.h" #define BREAK break
diff --git a/ssl/s23_lib.c b/ssl/s23_lib.c index c406472..80b2140 100644 --- a/ssl/s23_lib.c +++ b/ssl/s23_lib.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/s23_meth.c b/ssl/s23_meth.c index f1f8132..fc9eae2 100644 --- a/ssl/s23_meth.c +++ b/ssl/s23_meth.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/s23_pkt.c b/ssl/s23_pkt.c index 64acf2c..8370ea5 100644 --- a/ssl/s23_pkt.c +++ b/ssl/s23_pkt.c
@@ -59,8 +59,8 @@ #include <stdio.h> #include <errno.h> #define USE_SOCKETS -#include "evp.h" -#include "buffer.h" +#include <openssl/evp.h> +#include <openssl/buffer.h> #include "ssl_locl.h" int ssl23_write_bytes(SSL *s)
diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c index f626c9c..e5b127f 100644 --- a/ssl/s23_srvr.c +++ b/ssl/s23_srvr.c
@@ -57,10 +57,10 @@ */ #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> #include "ssl_locl.h" #define BREAK break
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index 3a79fd7..049ec6c 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c
@@ -57,11 +57,11 @@ */ #include <stdio.h> -#include "rand.h" -#include "buffer.h" -#include "objects.h" +#include <openssl/rand.h> +#include <openssl/buffer.h> +#include <openssl/objects.h> #include "ssl_locl.h" -#include "evp.h" +#include <openssl/evp.h> #ifndef NOPROTO static SSL_METHOD *ssl2_get_client_method(int ver);
diff --git a/ssl/s2_lib.c b/ssl/s2_lib.c index b058087..3551fb9 100644 --- a/ssl/s2_lib.c +++ b/ssl/s2_lib.c
@@ -57,8 +57,8 @@ */ #include <stdio.h> -#include "rsa.h" -#include "objects.h" +#include <openssl/rsa.h> +#include <openssl/objects.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/s2_meth.c b/ssl/s2_meth.c index 96ac159..d194038 100644 --- a/ssl/s2_meth.c +++ b/ssl/s2_meth.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c index d472d5d..5271546 100644 --- a/ssl/s2_srvr.c +++ b/ssl/s2_srvr.c
@@ -57,11 +57,11 @@ */ #include <stdio.h> -#include "bio.h" -#include "rand.h" -#include "objects.h" +#include <openssl/bio.h> +#include <openssl/rand.h> +#include <openssl/objects.h> #include "ssl_locl.h" -#include "evp.h" +#include <openssl/evp.h> #ifndef NOPROTO static SSL_METHOD *ssl2_get_server_method(int ver);
diff --git a/ssl/s3_both.c b/ssl/s3_both.c index f4478a9..fdffe75 100644 --- a/ssl/s3_both.c +++ b/ssl/s3_both.c
@@ -57,11 +57,11 @@ */ #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" -#include "x509.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> +#include <openssl/x509.h> #include "ssl_locl.h" #define BREAK break
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 6c8eefb..c2d33fe 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c
@@ -57,10 +57,10 @@ */ #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> #include "ssl_locl.h" #define BREAK break
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index dfddb51..2113ff3 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "evp.h" +#include <openssl/evp.h> #include "ssl_locl.h" static unsigned char ssl3_pad_1[48]={
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index aefb38b..14f6ac4 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" const char *ssl3_version_str="SSLv3" OPENSSL_VERSION_PTEXT;
diff --git a/ssl/s3_meth.c b/ssl/s3_meth.c index d70165c..0114702 100644 --- a/ssl/s3_meth.c +++ b/ssl/s3_meth.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 468831a..ebb3b6f 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c
@@ -59,8 +59,8 @@ #include <stdio.h> #include <errno.h> #define USE_SOCKETS -#include "evp.h" -#include "buffer.h" +#include <openssl/evp.h> +#include <openssl/buffer.h> #include "ssl_locl.h" /* SSLerr(SSL_F_GET_SERVER_HELLO,SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CIPHER);
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index d3c2680..60bdf26 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c
@@ -59,11 +59,11 @@ #define REUSE_CIPHER_BUG #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" -#include "x509.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> +#include <openssl/x509.h> #include "ssl_locl.h" #define BREAK break
diff --git a/ssl/ssl.c b/ssl/ssl.c index 1f769a1..f3e8cd4 100644 --- a/ssl/ssl.c +++ b/ssl/ssl.c
@@ -63,27 +63,27 @@ #define USE_SOCKETS #include "../e_os.h" -#include "buffer.h" -#include "stack.h" -#include "lhash.h" +#include <openssl/buffer.h> +#include <openssl/stack.h> +#include <openssl/lhash.h> -#include "bio.h" -#include "err.h" +#include <openssl/bio.h> +#include <openssl/err.h> -#include "bn.h" +#include <openssl/bn.h> -#include "rand.h" -#include "conf.h" -#include "txt_db.h" +#include <openssl/rand.h> +#include <openssl/conf.h> +#include <openssl/txt_db.h> -#include "err.h" -#include "evp.h" +#include <openssl/err.h> +#include <openssl/evp.h> -#include "x509.h" -#include "pkcs7.h" -#include "pem.h" -#include "asn1.h" -#include "objects.h" +#include <openssl/x509.h> +#include <openssl/pkcs7.h> +#include <openssl/pem.h> +#include <openssl/asn1.h> +#include <openssl/objects.h> #include "ssl_locl.h"
diff --git a/ssl/ssl.h b/ssl/ssl.h index 9605e34..1f42348 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h
@@ -63,7 +63,7 @@ extern "C" { #endif -#include "safestack.h" +#include <openssl/safestack.h> /* SSLeay version number for ASN.1 encoding of the session information */ /* Version 0 - initial version @@ -144,11 +144,11 @@ #define SSL_SENT_SHUTDOWN 1 #define SSL_RECEIVED_SHUTDOWN 2 -#include "crypto.h" -#include "lhash.h" -#include "buffer.h" -#include "bio.h" -#include "x509.h" +#include <openssl/crypto.h> +#include <openssl/lhash.h> +#include <openssl/buffer.h> +#include <openssl/bio.h> +#include <openssl/x509.h> #define SSL_FILETYPE_ASN1 X509_FILETYPE_ASN1 #define SSL_FILETYPE_PEM X509_FILETYPE_PEM @@ -603,10 +603,10 @@ * SSLv3/TLS rolback check */ }; -#include "ssl2.h" -#include "ssl3.h" -#include "tls1.h" /* This is mostly sslv3 with a few tweaks */ -#include "ssl23.h" +#include <openssl/ssl2.h> +#include <openssl/ssl3.h> +#include <openssl/tls1.h> /* This is mostly sslv3 with a few tweaks */ +#include <openssl/ssl23.h> /* compatablity */ #define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(char *)arg))
diff --git a/ssl/ssl3.h b/ssl/ssl3.h index 2e2ee98..23375f1 100644 --- a/ssl/ssl3.h +++ b/ssl/ssl3.h
@@ -59,7 +59,7 @@ #ifndef HEADER_SSL3_H #define HEADER_SSL3_H -#include "buffer.h" +#include <openssl/buffer.h> #ifdef __cplusplus extern "C" {
diff --git a/ssl/ssl_algs.c b/ssl/ssl_algs.c index 0c0e8da..6e198ec 100644 --- a/ssl/ssl_algs.c +++ b/ssl/ssl_algs.c
@@ -57,8 +57,8 @@ */ #include <stdio.h> -#include "objects.h" -#include "lhash.h" +#include <openssl/objects.h> +#include <openssl/lhash.h> #include "ssl_locl.h" int SSL_library_init(void)
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index 7454ba3..b8ae9d6 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c
@@ -58,8 +58,8 @@ #include <stdio.h> #include <stdlib.h> -#include "asn1_mac.h" -#include "objects.h" +#include <openssl/asn1_mac.h> +#include <openssl/objects.h> #include "ssl_locl.h" typedef struct ssl_session_asn1_st
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 90eb769..88cc5fc 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c
@@ -61,9 +61,9 @@ #ifndef WIN32 #include <dirent.h> #endif -#include "objects.h" -#include "bio.h" -#include "pem.h" +#include <openssl/objects.h> +#include <openssl/bio.h> +#include <openssl/pem.h> #include "ssl_locl.h" int SSL_get_ex_data_X509_STORE_CTX_idx(void)
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index b5d6f09..d684758 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c
@@ -57,8 +57,8 @@ */ #include <stdio.h> -#include "objects.h" -#include "comp.h" +#include <openssl/objects.h> +#include <openssl/comp.h> #include "ssl_locl.h" #define SSL_ENC_DES_IDX 0
diff --git a/ssl/ssl_err.c b/ssl/ssl_err.c index a9c2b6f..cfffe63 100644 --- a/ssl/ssl_err.c +++ b/ssl/ssl_err.c
@@ -56,8 +56,8 @@ * [including the GNU Public Licence.] */ #include <stdio.h> -#include "err.h" -#include "ssl.h" +#include <openssl/err.h> +#include <openssl/ssl.h> /* BEGIN ERROR CODES */ #ifndef NO_ERR
diff --git a/ssl/ssl_err2.c b/ssl/ssl_err2.c index dc8d038..cc089a6 100644 --- a/ssl/ssl_err2.c +++ b/ssl/ssl_err2.c
@@ -57,8 +57,8 @@ */ #include <stdio.h> -#include "err.h" -#include "ssl.h" +#include <openssl/err.h> +#include <openssl/ssl.h> void SSL_load_error_strings(void) {
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 6479e38..3560c7c 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -59,8 +59,8 @@ */ #include <stdio.h> -#include "objects.h" -#include "lhash.h" +#include <openssl/objects.h> +#include <openssl/lhash.h> #include "ssl_locl.h" char *SSL_version_str=OPENSSL_VERSION_TEXT;
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index be0c814..7b270c6 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h
@@ -63,17 +63,17 @@ #include <string.h> #include <errno.h> -#include "e_os.h" +#include <openssl/e_os.h> -#include "buffer.h" -#include "comp.h" -#include "bio.h" -#include "crypto.h" -#include "evp.h" -#include "stack.h" -#include "x509.h" -#include "err.h" -#include "ssl.h" +#include <openssl/buffer.h> +#include <openssl/comp.h> +#include <openssl/bio.h> +#include <openssl/crypto.h> +#include <openssl/evp.h> +#include <openssl/stack.h> +#include <openssl/x509.h> +#include <openssl/err.h> +#include <openssl/ssl.h> #define PKCS1_CHECK
diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index 9d10831..fde484b 100644 --- a/ssl/ssl_rsa.c +++ b/ssl/ssl_rsa.c
@@ -57,11 +57,11 @@ */ #include <stdio.h> -#include "bio.h" -#include "objects.h" -#include "evp.h" -#include "x509.h" -#include "pem.h" +#include <openssl/bio.h> +#include <openssl/objects.h> +#include <openssl/evp.h> +#include <openssl/x509.h> +#include <openssl/pem.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 3422099..26a80d6 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c
@@ -57,8 +57,8 @@ */ #include <stdio.h> -#include "lhash.h" -#include "rand.h" +#include <openssl/lhash.h> +#include <openssl/rand.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/ssl_task.c b/ssl/ssl_task.c index ab72166..05f9325 100644 --- a/ssl/ssl_task.c +++ b/ssl/ssl_task.c
@@ -123,11 +123,11 @@ #include <string.h> /* from ssltest.c */ #include <errno.h> -#include "buffer.h" +#include <openssl/buffer.h> #include "../e_os.h" -#include "x509.h" -#include "ssl.h" -#include "err.h" +#include <openssl/x509.h> +#include <openssl/ssl.h> +#include <openssl/err.h> int MS_CALLBACK verify_callback(int ok, X509 *xs, X509 *xi, int depth, int error);
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c index c1b2a86..df0af09 100644 --- a/ssl/ssl_txt.c +++ b/ssl/ssl_txt.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "buffer.h" +#include <openssl/buffer.h> #include "ssl_locl.h" #ifndef NO_FP_API
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index ef80d42..b6425c2 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c
@@ -60,12 +60,12 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include "e_os.h" -#include "bio.h" -#include "crypto.h" -#include "x509.h" -#include "ssl.h" -#include "err.h" +#include <openssl/e_os.h> +#include <openssl/bio.h> +#include <openssl/crypto.h> +#include <openssl/x509.h> +#include <openssl/ssl.h> +#include <openssl/err.h> #ifdef WINDOWS #include "../crypto/bio/bss_file.c" #endif
diff --git a/ssl/t1_clnt.c b/ssl/t1_clnt.c index 429ad0e..0e068c3 100644 --- a/ssl/t1_clnt.c +++ b/ssl/t1_clnt.c
@@ -57,10 +57,10 @@ */ #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 99af196..05a3382 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c
@@ -57,9 +57,9 @@ */ #include <stdio.h> -#include "comp.h" -#include "evp.h" -#include "hmac.h" +#include <openssl/comp.h> +#include <openssl/evp.h> +#include <openssl/hmac.h> #include "ssl_locl.h" static void tls1_P_hash(const EVP_MD *md, const unsigned char *sec,
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 746ef7e..ddf5c15 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" char *tls1_version_str="TLSv1" OPENSSL_VERSION_PTEXT;
diff --git a/ssl/t1_meth.c b/ssl/t1_meth.c index 888ea3e..2632773 100644 --- a/ssl/t1_meth.c +++ b/ssl/t1_meth.c
@@ -57,7 +57,7 @@ */ #include <stdio.h> -#include "objects.h" +#include <openssl/objects.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/t1_srvr.c b/ssl/t1_srvr.c index 7e65f26..d2655d5 100644 --- a/ssl/t1_srvr.c +++ b/ssl/t1_srvr.c
@@ -57,11 +57,11 @@ */ #include <stdio.h> -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" -#include "x509.h" +#include <openssl/buffer.h> +#include <openssl/rand.h> +#include <openssl/objects.h> +#include <openssl/evp.h> +#include <openssl/x509.h> #include "ssl_locl.h" #ifndef NOPROTO
diff --git a/ssl/tls1.h b/ssl/tls1.h index e956761..07dfe2b 100644 --- a/ssl/tls1.h +++ b/ssl/tls1.h
@@ -59,7 +59,7 @@ #ifndef HEADER_TLS1_H #define HEADER_TLS1_H -#include "buffer.h" +#include <openssl/buffer.h> #ifdef __cplusplus extern "C" {