Re: Using PEM_read_X509 openSSL Api-Sample Certificate

2011-07-20 Thread brajan
Mayur Premi wrote: > > Hi , > I am using X509* ** pX = * PEM_read_X509*(FILE *fp, X509 **x, > pem_password_cb *cb, void *u); > > to get a X509 certificate structure from PEM format File. > > My File(fp) looks like below: >

Using PEM_read_X509 openSSL Api

2011-07-20 Thread Mayur Premi
Hi , I am using X509* ** pX = * PEM_read_X509*(FILE *fp, X509 **x, pem_password_cb *cb, void *u); to get a X509 certificate structure from PEM format File. My File(fp) looks like below: -BEGIN CERTIFICATE

Re: PEM_read_X509 and d2i_X509_fp problem.

2005-05-10 Thread Calista
, NULL))) { fseek(fp, 0,SEEK_SET); x509 = PEM_read_X509( fp, NULL, NULL, NULL ); } --- Joseph Bruni <[EMAIL PROTECTED]> wrote: > Did you set up your mutex call-backs needed by the > library? See the > man page for CRYPTO_set_locking_callback, et a

Re: PEM_read_X509 and d2i_X509_fp problem.

2005-05-06 Thread Joseph Bruni
Did you set up your mutex call-backs needed by the library? See the man page for CRYPTO_set_locking_callback, et al for details. -joe On May 6, 2005, at 8:56 AM, Calista wrote: Are the functions d2i_X509_fp and PEM_read_X509 thread safe? smime.p7s Description: S/MIME cryptographic signature

PEM_read_X509 and d2i_X509_fp problem.

2005-05-06 Thread Calista
The code below fails sometimes( it prints "error"). I don't understand why. I have a multi threaded application, and all the threads may be doing the following code simultaneously. Are the functions d2i_X509_fp and PEM_read_X509 thread safe? The variables - x509, fp, cert_filenam

Re: PEM_read_X509 Crashes on openssl-0.9.7e

2004-11-22 Thread Dr. Stephen Henson
e subject name of > certificate, it worked fine with me then I downloaded the source from > OpenSSL.org and compiled it as the instructions were, now the downloaded > binaries work fine but when it comes to my own compiled binaries application > crashes on the following line >

PEM_read_X509 Crashes on openssl-0.9.7e

2004-11-22 Thread Aftab Alam
compiled it as the instructions were, now the downloaded binaries work fine but when it comes to my own compiled binaries application crashes on the following line   x509Cert = PEM_read_X509(fPointer, NULL, 0, NULL);   I used NASAM during compilation of the source. Can some body tell me what I am

PEM_read_X509() fails

2004-06-16 Thread Marcus Carey
Using MS VC++ .NET  PEM_read_X509(fp,NULL,NULL,NULL); fails.     I have narrowed it down to the BIO_gets() fucntion.   int BIO_get(BIO *b, char *in, int inl){ /* . . . */ i=b->method->bgets(b,in,inl);   /* . . . */ }   An Application Error dialog reports "The memory cannot be writting"

Re: About "PEM_read_privatekey, PEM_read_X509, etc" Problem

2001-10-11 Thread ???
Title: Message This document is in INSTALL.W32.   If you don't use the multithreaded DLL runtime library (/MD option) yourprogram will almost certainly crash because malloc gets confused -- theOpenSSL DLLs are statically linked to one version, the application mustnot use a different

About "PEM_read_privatekey, PEM_read_X509, etc" Problem

2001-10-11 Thread ???
Title: Message This document is in INSTALL.W32.   If you don't use the multithreaded DLL runtime library (/MD option) yourprogram will almost certainly crash because malloc gets confused -- theOpenSSL DLLs are statically linked to one version, the application mustnot use a different o

PEM_read_X509

2001-09-05 Thread Zulkiffli Mohd Nur
*serial;      char * s;   char * z;      if ((fp=fopen("C:\\CryptoWeb\\492001fromhaizad\\Haizad.crt","r")) != NULL)   {  x=X509_new();  if (PEM_read_X509(fp,&x,NULL,NULL)!=NULL) printf("\nReading success!\n");   else      {pri

Re: PEM_read_X509

2001-08-29 Thread Zulkiffli Mohd Nur
hi. i am new in this industry. now i am in project. can anybody help me, how to read the pem format file (like certificate).  i also try to using PEM_read_X509 but still have error. can anybody give any advise or example coding using Borland C++.Thank you.

PEM_read_X509 causes crash

2001-04-23 Thread George Lind
I have written a server on NT that crashes when it gets to the PEM_read_X509 function. Here is a portion of the code: X509* pCert = NULL; FILE *fpCert = fopen("c:\\trustedCA.pem", "r"); PEM_read_X509(fpCert, &pCert, NULL, NULL); Does anyone know what i

PEM_read_X509

2000-11-23 Thread Aaron Galea
Hi,   I am compiling all the openssl files under VC++ and creating a number of libraries that I can include to compile the programs. However I am having problems with PEM_read_X509 when compiling the .c files of the openssl. The error is "Not enough actual Parameters".