You might find this useful:
http://cprogramminglanguage.net/ascii-ebcdic-conversion-functions.aspx
Eric
At 07:08 AM 4/22/2011, you wrote:
Hi,
I am working on a MAINFRAME. The encoding page
is EBCDIC and not ASCII, so i have to do some
conversion to support openssl on a mainframe. I
am not familiar to use this method to open patch so it may be confusing.
Here is one patch like you ask with the diff tools :
diff -r crypto/x509/x509_vfy.c openssl-work/x509_vfy.c
8c8
< *
---
> *
15c15
< *
---
> *
22c22
< *
---
> *
37c37
< * 4. If you include any Windows specific code
(or a derivative thereof) from
---
> * 4. If you include any Windows specific code
(or a derivative thereof) from
40c40
< *
---
---
> *
52c52
< *
---
> *
256c256
< if ((ok <= 0) !! X509_cmp(x, xtmp))
---
> if ((ok <= 0) !! X509_cmp(x, xtmp))
266c266
< else
---
> else
1108c1108
< * will be duplicated by the parent, but this will rarely be used in
---
> * will be duplicated by the parent, but this will rarely be used in
1307c1307
< ok = get_crl_sk(ctx, &crl, &dcrl,
---
> ok = get_crl_sk(ctx, &crl, &dcrl,
1455c1455
1455c1455
< * a certificate was revoked. This has since been changed since
---
> * a certificate was revoked. This has since been changed since
1681a1682,1684
> £ifdef CHARSET_EBCDIC
> char v_eÝ14~,*v;
> £endif
1682a1686
>
1688a1693,1698
> £ifdef CHARSET_EBCDIC
> ascii2ebcdic(v_e, str, i < 14 ? i : 14);
> v = &v_eÝ0~;
> memcpy(str,v,i);
> £endif
>
1704c1714
< é
---
> é
1738a1749,1754
> £ifdef CHARSET_EBCDIC
> £ifdef CHARSET_EBCDIC
> ascii2ebcdic(v_e, buff2, atm.length < 14 ? atm.length : 14);
> v = &v_eÝ0~;
> memcpy(buff2,v,atm.length);
> £endif
Regards
=========================================================
Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.
=========================================================
This message and any attachments (the "message") are confidential,
intended solely for the addressees, and may contain legally privileged
information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.
=========================================================
Eric S. Eberhard
(928) 567-3727 Voice
(928) 567-6122 Fax
(928) 301-7537 Cell
Vertical Integrated Computer Systems, LLC
Metropolis Support, LLC
For Metropolis support and VICS MBA Support!!!! http://www.vicsmba.com
Pictures of Snake in Spring
http://www.facebook.com/album.php?aid=115547&id=1409661701&l=1c375e1f49
Pictures of Camp Verde
http://www.facebook.com/album.php?aid=12771&id=1409661701&l=fc0e0a2bcf
Pictures of Land Cruiser in Sedona
http://www.facebook.com/album.php?aid=50953&id=1409661701
Pictures of Flagstaff area near our cabin
http://www.facebook.com/album.php?aid=12750&id=1409661701
Pictures of Cheryl in a Horse Show
http://www.facebook.com/album.php?aid=32484&id=1409661701
Pictures of the AZ Desert
http://www.facebook.com/album.php?aid=58827&id=1409661701
(You can see why we love this state :-) )
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org