summaryrefslogtreecommitdiff
path: root/lib/libcrypto/err
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-04-18 21:11:01 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-04-18 21:11:01 +0000
commita435bcdf6fb2cae203a80f8fa8abf4ec09b5d99b (patch)
treed9e00a11f152dfebb4a09df5414bc06c8637ca64 /lib/libcrypto/err
parente796de0f46c3a61bf127da9b819e0d1751040825 (diff)
Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developers
they had resorted to manually protyping read(2) instead of incredible amount of preprocessor wizardry needed to find the ever illusive <unistd.h>. Let's just include <unistd.h> and we don't need to do this.. While we're at it flense out _OSD_POSIX and __DGJPP__ cruft. ok krw@
Diffstat (limited to 'lib/libcrypto/err')
-rw-r--r--lib/libcrypto/err/err.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libcrypto/err/err.c b/lib/libcrypto/err/err.c
index afc3130d08a..27a19bc52c9 100644
--- a/lib/libcrypto/err/err.c
+++ b/lib/libcrypto/err/err.c
@@ -697,25 +697,6 @@ void ERR_put_error(int lib, int func, int reason, const char *file,
{
ERR_STATE *es;
-#ifdef _OSD_POSIX
- /* In the BS2000-OSD POSIX subsystem, the compiler generates
- * path names in the form "*POSIX(/etc/passwd)".
- * This dirty hack strips them to something sensible.
- * @@@ We shouldn't modify a const string, though.
- */
- if (strncmp(file,"*POSIX(", sizeof("*POSIX(")-1) == 0) {
- char *end;
-
- /* Skip the "*POSIX(" prefix */
- file += sizeof("*POSIX(")-1;
- end = &file[strlen(file)-1];
- if (*end == ')')
- *end = '\0';
- /* Optional: use the basename of the path only. */
- if ((end = strrchr(file, '/')) != NULL)
- file = &end[1];
- }
-#endif
es=ERR_get_state();
es->top=(es->top+1)%ERR_NUM_ERRORS;