Juan Lang : rsaenh: Public keys should be exported with the CALG_RSA_KEYX alg_id.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 27 05:42:30 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: c562957375b733873dfbb7b35c65454c64d91dbc
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c562957375b733873dfbb7b35c65454c64d91dbc

Author: Juan Lang <juan_lang at yahoo.com>
Date:   Wed Jul 26 10:20:09 2006 -0700

rsaenh: Public keys should be exported with the CALG_RSA_KEYX alg_id.

---

 dlls/rsaenh/rsaenh.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index d42face..5a4ce2f 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -2195,6 +2195,8 @@ BOOL WINAPI RSAENH_CPExportKey(HCRYPTPRO
                 pBlobHeader->bVersion = CUR_BLOB_VERSION;
                 pBlobHeader->reserved = 0;
                 pBlobHeader->aiKeyAlg = pCryptKey->aiAlgid;
+                if (pBlobHeader->aiKeyAlg == CALG_RSA_SIGN)
+                    pBlobHeader->aiKeyAlg = CALG_RSA_KEYX;
 
                 pRSAPubKey->magic = RSAENH_MAGIC_RSA1; 
                 pRSAPubKey->bitlen = pCryptKey->dwKeyLen << 3;




More information about the wine-cvs mailing list