Dear List!
Please excuse me if I ask something obvious or RTFM rated, I was browsing
the
list archives and the openssl.org's docs all day, but couldn't find the
solutuion. Here's my prob:
I reduced my "program" in VC++ 7 to:
----------------------------------------------------------------------------
>8
FILE *privKeyFile = fopen("D:\\Temp\\verify\\privkey.pem","r");
// keyLen = fread( keyBuff, 1, 4096, keyfile ); <- This was an attempt to
verify the file, it did read
if ( !privKeyFile ) // *Sigh*
{
printf( "privKeyFile not found" );
return;
}
RSA* tempRSA = PEM_read_RSAPrivateKey( privKeyFile, NULL, NULL, NULL );
----------------------------------------------------------------------------
>8
The last line leads to: int PEM_read_bio(BIO *bp, char **name, char
**header,
unsigned char **data, long *len) /w all 5 params being valid
in this fucnt, when the debug gets to: i=BIO_gets(bp,buf,254);
It throws an Unhandled exception at 0x7c918fea in xy.exe: 0xC0000005:
Access violation writing location 0x00000010.
I couldn't debug deeper b/c I couldn't find iodef.h and didn't have the VS
install DVD at hand (it was stated on this list that it installs w/
the VS)
Please lead me to the light :) Is it a known bug? Did i compile/install
something wrong?
Thanks in advance
Balazs
Here's my privkey.pem: (I generated it w/ the openssl.exe using some sample
arguments)
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,16BE416AB451EDFA
gA9zzr/3seeTNXUNi3ENLHpzOq75DScxu4DIQlTlZU44WcWMoxdRznC4BAh6hyxv
o8pkg4kVFs4Ka5E7HGnHV/2N58kJgpLTB+nyLvZGUEbqVz5hdPEjO1bPUCVoJKd1
QSDDMHHyeXh3MapQ0Vw1xYGhR6Vp8w4r3pDNFPIrxBMk1PoLkMr1hOoMiRL1353F
V5QNTwm/zJL/uz5v6Autd8lL49f107ouGstBDKetANy8NXdYp58UV/tQ3F2z84Gh
u0jSWVchgihR3nw9ONJeyRFoifFg3DLcalHLrJ08IBYAiJdXrsSaoTSeZLU1Bg36
qsfeucfkctStjpWPYsfnkNczua9qeuuIpyvc25sz+HU/OPtN8h7OwDDzeAqZeHHT
6yT8HdAp2POEXH5jMvlYYVoiJ6uBxD0/xZoKCzCZl3DmGaamRmUjIH7afW9v/npz
Fx1tgHtwrVF7Ind+9hKwhUTv9QIPm7kSz2deiP3bzKHUSrh0lhsgsnRGgGFwFqO2
oUXat0QauIabodxX8ta8+Oc7iqesa16sMgkJRRcqrv09H6PZZOiDSP/Mm0V09qoH
CHKKLslfMFCp9SdUXFsCWo4dIR/wjZVFTDiuA4B8N5Z9UJ39BqRi6jafe/UnJYN6
Rid+C27+lgqSwvPG3lES89LcMOy+xPxy/BDFCvTanMy3pvfjRJvr7Lb4LBBV9QXs
lOEmj0IloYUvq3L5iI8vwyocGvuv4sS9cQMAhXQN+skBFb+nlXdeSPdHPboOTMIq
QuVa59y0BjdPIOYhoF8FEtriWWETpGfwsi7qdNx2/+ZR+0cDW+fJPA==
-----END RSA PRIVATE KEY-----
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]