diff options
author | Ulf Möller <ulf@openssl.org> | 1999-06-04 21:35:58 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-06-04 21:35:58 +0000 |
commit | a53955d8abd68c604de02cc1e101c66169207fb7 (patch) | |
tree | e51051484f2b073f7b58a1549442bf0657ca2978 /crypto/ripemd | |
parent | 9231f4779677a3cb95a4f8ccebd56432cb914498 (diff) |
Support the EBCDIC character set and BS2000/OSD-POSIX (work in progress).
Submitted by: Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>
Diffstat (limited to 'crypto/ripemd')
-rw-r--r-- | crypto/ripemd/rmd160.c | 3 | ||||
-rw-r--r-- | crypto/ripemd/rmdtest.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/crypto/ripemd/rmd160.c b/crypto/ripemd/rmd160.c index 8481e44bed..4f8b88a18a 100644 --- a/crypto/ripemd/rmd160.c +++ b/crypto/ripemd/rmd160.c @@ -64,7 +64,10 @@ void do_fp(FILE *f); void pt(unsigned char *md); +#ifndef _OSD_POSIX int read(int, void *, unsigned int); +#endif + int main(int argc, char **argv) { int i,err=0; diff --git a/crypto/ripemd/rmdtest.c b/crypto/ripemd/rmdtest.c index 8a19f29999..5e93d4627c 100644 --- a/crypto/ripemd/rmdtest.c +++ b/crypto/ripemd/rmdtest.c @@ -69,6 +69,10 @@ int main(int argc, char *argv[]) #else #include <openssl/ripemd.h> +#ifdef CHARSET_EBCDIC +#include <openssl/ebcdic.h> +#endif + char *test[]={ "", "a", @@ -104,6 +108,9 @@ int main(int argc, char *argv[]) i=1; while (*P != NULL) { +#ifdef CHARSET_EBCDIC + ebcdic2ascii((char *)*P, (char *)*P, strlen((char *)*P)); +#endif p=pt(RIPEMD160(&(P[0][0]),(unsigned long)strlen((char *)*P),NULL)); if (strcmp(p,(char *)*R) != 0) { |