diff options
author | 2014-04-18 21:11:00 +0000 | |
---|---|---|
committer | 2014-04-18 21:11:00 +0000 | |
commit | 863611984864cccb9b7d50872d693238458b77ad (patch) | |
tree | d3773bf04bf320b22dd52052bdf176d722791687 /lib/libssl/src/crypto/err/err.c | |
parent | ECDSA signature computation involves a random number. Remove the test trying to (diff) | |
download | wireguard-openbsd-863611984864cccb9b7d50872d693238458b77ad.tar.xz wireguard-openbsd-863611984864cccb9b7d50872d693238458b77ad.zip |
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/libssl/src/crypto/err/err.c')
-rw-r--r-- | lib/libssl/src/crypto/err/err.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c index afc3130d08a..27a19bc52c9 100644 --- a/lib/libssl/src/crypto/err/err.c +++ b/lib/libssl/src/crypto/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; |