Key type in OpenSSLCryptoKeyRSA

2004-12-20 Thread Vadim Ismailov
I just paid attention that in OpenSSLCryptoKeyRSA::OpenSSLCryptoKeyRSA (somewhere near line 143) when copying RSA key from EVP_PKEY, member m_keyType is not initialized. I didn't look deep into code and don't know what possible implications this might cause (seems that nothing serious at all), but

Proposal/Fix for XSECError.hpp

2004-12-09 Thread Vadim Ismailov
Hi, Starting from VS.NET 7.0 operator new does not anymore return NULL in case of allocation error. It throws std::bad_alloc exception instead (the way it is supposed to be). Therefore following code in XSECError.hpp not going to work as expected: -- start

Re: [Patch] b64Buf to short for certs with a key length longer than 1024 bits

2004-12-02 Thread Vadim Ismailov
Here's another one. OpenSSLCryptoKeyRSA.cpp line 198: unsigned char sigVal[512]; I was using 4096 bit RSA key and it was corrupting stack during signature verification. I changed buffer size to 1024 and it works now. EVP_DecodeUpdate still returns 512 bytes and EVP_DecodeFinal() returns 0 and pro