Support the EBCDIC character set and BS2000/OSD-POSIX (work in progress).

Submitted by: Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>
This commit is contained in:
Ulf Möller
1999-06-04 21:54:13 +00:00
parent af258e0dec
commit ca570cfdbc
4 changed files with 37 additions and 0 deletions

View File

@@ -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)
{