summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/bio/bss_fd.c9
-rw-r--r--src/lib/libcrypto/des/enc_read.c6
-rw-r--r--src/lib/libcrypto/des/enc_writ.c6
-rw-r--r--src/lib/libcrypto/x509/by_dir.c6
-rw-r--r--src/lib/libssl/src/crypto/bio/bss_fd.c9
-rw-r--r--src/lib/libssl/src/crypto/des/enc_read.c6
-rw-r--r--src/lib/libssl/src/crypto/des/enc_writ.c6
-rw-r--r--src/lib/libssl/src/crypto/x509/by_dir.c6
8 files changed, 8 insertions, 46 deletions
diff --git a/src/lib/libcrypto/bio/bss_fd.c b/src/lib/libcrypto/bio/bss_fd.c
index 71abb4744a..b21dbd92ed 100644
--- a/src/lib/libcrypto/bio/bss_fd.c
+++ b/src/lib/libcrypto/bio/bss_fd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_fd.c,v 1.17 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: bss_fd.c,v 1.18 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -63,12 +63,6 @@
63 63
64#include <openssl/opensslconf.h> 64#include <openssl/opensslconf.h>
65 65
66#if defined(OPENSSL_NO_POSIX_IO)
67/*
68 * One can argue that one should implement dummy placeholder for
69 * BIO_s_fd here...
70 */
71#else
72#include <openssl/bio.h> 66#include <openssl/bio.h>
73 67
74static int fd_write(BIO *h, const char *buf, int num); 68static int fd_write(BIO *h, const char *buf, int num);
@@ -271,4 +265,3 @@ BIO_fd_non_fatal_error(int err)
271 } 265 }
272 return (0); 266 return (0);
273} 267}
274#endif
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c
index e4680af4f2..f5659150d3 100644
--- a/src/lib/libcrypto/des/enc_read.c
+++ b/src/lib/libcrypto/des/enc_read.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc_read.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: enc_read.c,v 1.15 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -88,9 +88,6 @@ int DES_rw_mode = DES_PCBC_MODE;
88int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, 88int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
89 DES_cblock *iv) 89 DES_cblock *iv)
90 { 90 {
91#if defined(OPENSSL_NO_POSIX_IO)
92 return(0);
93#else
94 /* data to be unencrypted */ 91 /* data to be unencrypted */
95 int net_num=0; 92 int net_num=0;
96 static unsigned char *net=NULL; 93 static unsigned char *net=NULL;
@@ -228,6 +225,5 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
228 } 225 }
229 } 226 }
230 return num; 227 return num;
231#endif /* OPENSSL_NO_POSIX_IO */
232 } 228 }
233 229
diff --git a/src/lib/libcrypto/des/enc_writ.c b/src/lib/libcrypto/des/enc_writ.c
index 0130c2c6d9..59f3878de9 100644
--- a/src/lib/libcrypto/des/enc_writ.c
+++ b/src/lib/libcrypto/des/enc_writ.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc_writ.c,v 1.13 2014/10/22 13:02:04 jsing Exp $ */ 1/* $OpenBSD: enc_writ.c,v 1.14 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -82,9 +82,6 @@
82int DES_enc_write(int fd, const void *_buf, int len, 82int DES_enc_write(int fd, const void *_buf, int len,
83 DES_key_schedule *sched, DES_cblock *iv) 83 DES_key_schedule *sched, DES_cblock *iv)
84 { 84 {
85#if defined(OPENSSL_NO_POSIX_IO)
86 return (-1);
87#else
88#ifdef _LIBC 85#ifdef _LIBC
89 extern unsigned long time(); 86 extern unsigned long time();
90 extern int write(); 87 extern int write();
@@ -173,5 +170,4 @@ int DES_enc_write(int fd, const void *_buf, int len,
173 } 170 }
174 171
175 return(len); 172 return(len);
176#endif /* OPENSSL_NO_POSIX_IO */
177 } 173 }
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c
index 46003cb320..032210424d 100644
--- a/src/lib/libcrypto/x509/by_dir.c
+++ b/src/lib/libcrypto/x509/by_dir.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_dir.c,v 1.35 2015/02/05 01:33:22 reyk Exp $ */ 1/* $OpenBSD: by_dir.c,v 1.36 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,9 +70,7 @@
70#include <openssl/lhash.h> 70#include <openssl/lhash.h>
71#include <openssl/x509.h> 71#include <openssl/x509.h>
72 72
73#ifndef OPENSSL_NO_POSIX_IO
74# include <sys/stat.h> 73# include <sys/stat.h>
75#endif
76 74
77typedef struct lookup_dir_hashes_st { 75typedef struct lookup_dir_hashes_st {
78 unsigned long hash; 76 unsigned long hash;
@@ -344,13 +342,11 @@ get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
344 (void) snprintf(b->data, b->max, "%s/%08lx.%s%d", 342 (void) snprintf(b->data, b->max, "%s/%08lx.%s%d",
345 ent->dir, h, postfix, k); 343 ent->dir, h, postfix, k);
346 344
347#ifndef OPENSSL_NO_POSIX_IO
348 { 345 {
349 struct stat st; 346 struct stat st;
350 if (stat(b->data, &st) < 0) 347 if (stat(b->data, &st) < 0)
351 break; 348 break;
352 } 349 }
353#endif
354 /* found one. */ 350 /* found one. */
355 if (type == X509_LU_X509) { 351 if (type == X509_LU_X509) {
356 if ((X509_load_cert_file(xl, b->data, 352 if ((X509_load_cert_file(xl, b->data,
diff --git a/src/lib/libssl/src/crypto/bio/bss_fd.c b/src/lib/libssl/src/crypto/bio/bss_fd.c
index 71abb4744a..b21dbd92ed 100644
--- a/src/lib/libssl/src/crypto/bio/bss_fd.c
+++ b/src/lib/libssl/src/crypto/bio/bss_fd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_fd.c,v 1.17 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: bss_fd.c,v 1.18 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -63,12 +63,6 @@
63 63
64#include <openssl/opensslconf.h> 64#include <openssl/opensslconf.h>
65 65
66#if defined(OPENSSL_NO_POSIX_IO)
67/*
68 * One can argue that one should implement dummy placeholder for
69 * BIO_s_fd here...
70 */
71#else
72#include <openssl/bio.h> 66#include <openssl/bio.h>
73 67
74static int fd_write(BIO *h, const char *buf, int num); 68static int fd_write(BIO *h, const char *buf, int num);
@@ -271,4 +265,3 @@ BIO_fd_non_fatal_error(int err)
271 } 265 }
272 return (0); 266 return (0);
273} 267}
274#endif
diff --git a/src/lib/libssl/src/crypto/des/enc_read.c b/src/lib/libssl/src/crypto/des/enc_read.c
index e4680af4f2..f5659150d3 100644
--- a/src/lib/libssl/src/crypto/des/enc_read.c
+++ b/src/lib/libssl/src/crypto/des/enc_read.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc_read.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: enc_read.c,v 1.15 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -88,9 +88,6 @@ int DES_rw_mode = DES_PCBC_MODE;
88int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, 88int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
89 DES_cblock *iv) 89 DES_cblock *iv)
90 { 90 {
91#if defined(OPENSSL_NO_POSIX_IO)
92 return(0);
93#else
94 /* data to be unencrypted */ 91 /* data to be unencrypted */
95 int net_num=0; 92 int net_num=0;
96 static unsigned char *net=NULL; 93 static unsigned char *net=NULL;
@@ -228,6 +225,5 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
228 } 225 }
229 } 226 }
230 return num; 227 return num;
231#endif /* OPENSSL_NO_POSIX_IO */
232 } 228 }
233 229
diff --git a/src/lib/libssl/src/crypto/des/enc_writ.c b/src/lib/libssl/src/crypto/des/enc_writ.c
index 0130c2c6d9..59f3878de9 100644
--- a/src/lib/libssl/src/crypto/des/enc_writ.c
+++ b/src/lib/libssl/src/crypto/des/enc_writ.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc_writ.c,v 1.13 2014/10/22 13:02:04 jsing Exp $ */ 1/* $OpenBSD: enc_writ.c,v 1.14 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -82,9 +82,6 @@
82int DES_enc_write(int fd, const void *_buf, int len, 82int DES_enc_write(int fd, const void *_buf, int len,
83 DES_key_schedule *sched, DES_cblock *iv) 83 DES_key_schedule *sched, DES_cblock *iv)
84 { 84 {
85#if defined(OPENSSL_NO_POSIX_IO)
86 return (-1);
87#else
88#ifdef _LIBC 85#ifdef _LIBC
89 extern unsigned long time(); 86 extern unsigned long time();
90 extern int write(); 87 extern int write();
@@ -173,5 +170,4 @@ int DES_enc_write(int fd, const void *_buf, int len,
173 } 170 }
174 171
175 return(len); 172 return(len);
176#endif /* OPENSSL_NO_POSIX_IO */
177 } 173 }
diff --git a/src/lib/libssl/src/crypto/x509/by_dir.c b/src/lib/libssl/src/crypto/x509/by_dir.c
index 46003cb320..032210424d 100644
--- a/src/lib/libssl/src/crypto/x509/by_dir.c
+++ b/src/lib/libssl/src/crypto/x509/by_dir.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_dir.c,v 1.35 2015/02/05 01:33:22 reyk Exp $ */ 1/* $OpenBSD: by_dir.c,v 1.36 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,9 +70,7 @@
70#include <openssl/lhash.h> 70#include <openssl/lhash.h>
71#include <openssl/x509.h> 71#include <openssl/x509.h>
72 72
73#ifndef OPENSSL_NO_POSIX_IO
74# include <sys/stat.h> 73# include <sys/stat.h>
75#endif
76 74
77typedef struct lookup_dir_hashes_st { 75typedef struct lookup_dir_hashes_st {
78 unsigned long hash; 76 unsigned long hash;
@@ -344,13 +342,11 @@ get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
344 (void) snprintf(b->data, b->max, "%s/%08lx.%s%d", 342 (void) snprintf(b->data, b->max, "%s/%08lx.%s%d",
345 ent->dir, h, postfix, k); 343 ent->dir, h, postfix, k);
346 344
347#ifndef OPENSSL_NO_POSIX_IO
348 { 345 {
349 struct stat st; 346 struct stat st;
350 if (stat(b->data, &st) < 0) 347 if (stat(b->data, &st) < 0)
351 break; 348 break;
352 } 349 }
353#endif
354 /* found one. */ 350 /* found one. */
355 if (type == X509_LU_X509) { 351 if (type == X509_LU_X509) {
356 if ((X509_load_cert_file(xl, b->data, 352 if ((X509_load_cert_file(xl, b->data,