diff options
author | Ulf Möller <ulf@openssl.org> | 1999-06-04 21:54:13 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-06-04 21:54:13 +0000 |
commit | ca570cfdbcaf35ba7e2554fd18eda8cfab2176e4 (patch) | |
tree | 366df4a9e70264cc937c6c19ec65202958a3e580 /ssl/s2_lib.c | |
parent | af258e0deca2e40b694f433c2be3de34b60908bd (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 'ssl/s2_lib.c')
-rw-r--r-- | ssl/s2_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/s2_lib.c b/ssl/s2_lib.c index 5186724c43..ff804d8e0d 100644 --- a/ssl/s2_lib.c +++ b/ssl/s2_lib.c @@ -361,6 +361,11 @@ void ssl2_generate_key_material(SSL *s) unsigned char *km; unsigned char c='0'; +#ifdef CHARSET_EBCDIC + c = os_toascii['0']; /* Must be an ASCII '0', not EBCDIC '0', + see SSLv2 docu */ +#endif + km=s->s2->key_material; for (i=0; i<s->s2->key_material_length; i+=MD5_DIGEST_LENGTH) { |