This patch adds support for SHA256/SHA384/SHA512 to e_capi.c.

If it is important for this patch to work with older Platform SDKs, the 
attached change can be updated to test for CALG_SHA_256 define.

The patch is against 1.0.0f but should work for 0.9.8 as well.


--- orig.e_capi.c       2012-02-03 14:21:45.929699600 +0000
+++ e_capi.c    2012-02-06 12:37:32.209347200 +0000
@@ -819,6 +819,19 @@
        case NID_md5_sha1:
                alg = CALG_SSL3_SHAMD5;
                break;
+
+       case NID_sha256:
+               alg = CALG_SHA_256;
+               break;
+
+       case NID_sha384:
+               alg = CALG_SHA_384;
+               break;
+
+       case NID_sha512:
+               alg = CALG_SHA_512;
+               break;
+
        default:
                {
                char algstr[10];

Reply via email to