diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/err/err.c | 19 | ||||
| -rw-r--r-- | src/lib/libcrypto/md4/md4.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/md5/md5.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/ripemd/rmd160.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha1.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/err/err.c | 19 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/md4/md4.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/md5/md5.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/ripemd/rmd160.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/sha/sha1.c | 4 |
10 files changed, 8 insertions, 62 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index afc3130d08..27a19bc52c 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c | |||
| @@ -697,25 +697,6 @@ void ERR_put_error(int lib, int func, int reason, const char *file, | |||
| 697 | { | 697 | { |
| 698 | ERR_STATE *es; | 698 | ERR_STATE *es; |
| 699 | 699 | ||
| 700 | #ifdef _OSD_POSIX | ||
| 701 | /* In the BS2000-OSD POSIX subsystem, the compiler generates | ||
| 702 | * path names in the form "*POSIX(/etc/passwd)". | ||
| 703 | * This dirty hack strips them to something sensible. | ||
| 704 | * @@@ We shouldn't modify a const string, though. | ||
| 705 | */ | ||
| 706 | if (strncmp(file,"*POSIX(", sizeof("*POSIX(")-1) == 0) { | ||
| 707 | char *end; | ||
| 708 | |||
| 709 | /* Skip the "*POSIX(" prefix */ | ||
| 710 | file += sizeof("*POSIX(")-1; | ||
| 711 | end = &file[strlen(file)-1]; | ||
| 712 | if (*end == ')') | ||
| 713 | *end = '\0'; | ||
| 714 | /* Optional: use the basename of the path only. */ | ||
| 715 | if ((end = strrchr(file, '/')) != NULL) | ||
| 716 | file = &end[1]; | ||
| 717 | } | ||
| 718 | #endif | ||
| 719 | es=ERR_get_state(); | 700 | es=ERR_get_state(); |
| 720 | 701 | ||
| 721 | es->top=(es->top+1)%ERR_NUM_ERRORS; | 702 | es->top=(es->top+1)%ERR_NUM_ERRORS; |
diff --git a/src/lib/libcrypto/md4/md4.c b/src/lib/libcrypto/md4/md4.c index 141415ad4d..1b78f667f1 100644 --- a/src/lib/libcrypto/md4/md4.c +++ b/src/lib/libcrypto/md4/md4.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/md4.h> | 62 | #include <openssl/md4.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libcrypto/md5/md5.c b/src/lib/libcrypto/md5/md5.c index 563733abc5..3f6ec0791e 100644 --- a/src/lib/libcrypto/md5/md5.c +++ b/src/lib/libcrypto/md5/md5.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/md5.h> | 62 | #include <openssl/md5.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libcrypto/ripemd/rmd160.c b/src/lib/libcrypto/ripemd/rmd160.c index b0ec574498..d0bc59d03c 100644 --- a/src/lib/libcrypto/ripemd/rmd160.c +++ b/src/lib/libcrypto/ripemd/rmd160.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/ripemd.h> | 62 | #include <openssl/ripemd.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libcrypto/sha/sha1.c b/src/lib/libcrypto/sha/sha1.c index d350c88ee4..fd56a1e756 100644 --- a/src/lib/libcrypto/sha/sha1.c +++ b/src/lib/libcrypto/sha/sha1.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/sha.h> | 62 | #include <openssl/sha.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #ifndef _OSD_POSIX | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libssl/src/crypto/err/err.c b/src/lib/libssl/src/crypto/err/err.c index afc3130d08..27a19bc52c 100644 --- a/src/lib/libssl/src/crypto/err/err.c +++ b/src/lib/libssl/src/crypto/err/err.c | |||
| @@ -697,25 +697,6 @@ void ERR_put_error(int lib, int func, int reason, const char *file, | |||
| 697 | { | 697 | { |
| 698 | ERR_STATE *es; | 698 | ERR_STATE *es; |
| 699 | 699 | ||
| 700 | #ifdef _OSD_POSIX | ||
| 701 | /* In the BS2000-OSD POSIX subsystem, the compiler generates | ||
| 702 | * path names in the form "*POSIX(/etc/passwd)". | ||
| 703 | * This dirty hack strips them to something sensible. | ||
| 704 | * @@@ We shouldn't modify a const string, though. | ||
| 705 | */ | ||
| 706 | if (strncmp(file,"*POSIX(", sizeof("*POSIX(")-1) == 0) { | ||
| 707 | char *end; | ||
| 708 | |||
| 709 | /* Skip the "*POSIX(" prefix */ | ||
| 710 | file += sizeof("*POSIX(")-1; | ||
| 711 | end = &file[strlen(file)-1]; | ||
| 712 | if (*end == ')') | ||
| 713 | *end = '\0'; | ||
| 714 | /* Optional: use the basename of the path only. */ | ||
| 715 | if ((end = strrchr(file, '/')) != NULL) | ||
| 716 | file = &end[1]; | ||
| 717 | } | ||
| 718 | #endif | ||
| 719 | es=ERR_get_state(); | 700 | es=ERR_get_state(); |
| 720 | 701 | ||
| 721 | es->top=(es->top+1)%ERR_NUM_ERRORS; | 702 | es->top=(es->top+1)%ERR_NUM_ERRORS; |
diff --git a/src/lib/libssl/src/crypto/md4/md4.c b/src/lib/libssl/src/crypto/md4/md4.c index 141415ad4d..1b78f667f1 100644 --- a/src/lib/libssl/src/crypto/md4/md4.c +++ b/src/lib/libssl/src/crypto/md4/md4.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/md4.h> | 62 | #include <openssl/md4.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libssl/src/crypto/md5/md5.c b/src/lib/libssl/src/crypto/md5/md5.c index 563733abc5..3f6ec0791e 100644 --- a/src/lib/libssl/src/crypto/md5/md5.c +++ b/src/lib/libssl/src/crypto/md5/md5.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/md5.h> | 62 | #include <openssl/md5.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libssl/src/crypto/ripemd/rmd160.c b/src/lib/libssl/src/crypto/ripemd/rmd160.c index b0ec574498..d0bc59d03c 100644 --- a/src/lib/libssl/src/crypto/ripemd/rmd160.c +++ b/src/lib/libssl/src/crypto/ripemd/rmd160.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/ripemd.h> | 62 | #include <openssl/ripemd.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
diff --git a/src/lib/libssl/src/crypto/sha/sha1.c b/src/lib/libssl/src/crypto/sha/sha1.c index d350c88ee4..fd56a1e756 100644 --- a/src/lib/libssl/src/crypto/sha/sha1.c +++ b/src/lib/libssl/src/crypto/sha/sha1.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/sha.h> | 62 | #include <openssl/sha.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #ifndef _OSD_POSIX | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
