Re: i am confused in PEM_read_PrivateKey

2006-06-14 Thread Nils Larsch
孙 金龙 wrote: > thanks! i only want to read ec privatekey > my ec privatekey is below > -BEGIN EC PRIVATE KEY- > MGACAQEEGAu0lmj+Fgurl8m7Tpwi4+wZk9GRSgdyjKALBgkqgRzXYwEBAgGhNAMy > AQS0/wY++sZk+W3QERcmJ+5m1l+PKkaFhJelGBfWaDN4vmSZg7ltf8YtRaUVvyaS > m1I= > -END EC PRIVATE KEY- > so i use

Re: i am confused in PEM_read_PrivateKey

2006-06-14 Thread 孙 金龙
quot;Rajeshwar Singh Jenwar" <[EMAIL PROTECTED]> Reply-To: openssl-users@openssl.org To: openssl-users@openssl.org Subject: Re: i am confused in PEM_read_PrivateKey Date: Wed, 14 Jun 2006 09:49:04 +0530 Hi Girish, Can u explain how d2i is indeed getting resolve to d2i_RSAPrivateKey() ?

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Rajeshwar Singh Jenwar
Hi Girish,   Can u explain how d2i is indeed getting resolve to d2i_RSAPrivateKey() ?   RSJ  On 6/13/06, Girish Venkatachalam <[EMAIL PROTECTED]> wrote: Sorry I was wrong. d2i indeed resolves tod2i_RSAPrivateKey() which takes 3 parameters andpasses the first type parameter to d2i_PrivateKey() which

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread 孙 金龙
o: openssl-users@openssl.org Subject: Re: i am confused in PEM_read_PrivateKey Date: Tue, 13 Jun 2006 19:31:57 +0200 On Tue, Jun 13, 2006, ?? wrote: > when i use PEM_read_PrivateKey find it work error ,so i look into > PEM_read_PrivateKey to find the reason. Printing out the error

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Dr. Stephen Henson
On Tue, Jun 13, 2006, ?? wrote: > when i use PEM_read_PrivateKey find it work error ,so i look into > PEM_read_PrivateKey to find the reason. Printing out the error code in human readable form might help more (see FAQ) assuming you haven't done that already. Steve. -- Dr Stephen N. Henson.

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Dr. Stephen Henson
On Tue, Jun 13, 2006, ?? wrote: > when i use PEM_read_PrivateKey find it work error ,so i look into > PEM_read_PrivateKey to find the reason. > first i find in > #define PEM_read_PrivateKey(fp,x,cb,u) (EVP_PKEY *)PEM_ASN1_read( \ > (char *(*)())d2i_PrivateKey,PEM_STRING_EVP_PKEY,

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Mikhail Kruk
On Tue, 13 Jun 2006, Girish Venkatachalam wrote: > Sorry I was wrong. d2i indeed resolves to > d2i_RSAPrivateKey() which takes 3 parameters and > passes the first type parameter to d2i_PrivateKey() > which takes 4 parameters. > > But it beats me why I cannot find the definition of > d2i_RSAPriva

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Girish Venkatachalam
Sorry I was wrong. d2i indeed resolves to d2i_RSAPrivateKey() which takes 3 parameters and passes the first type parameter to d2i_PrivateKey() which takes 4 parameters. But it beats me why I cannot find the definition of d2i_RSAPrivateKey() anywhere. --- Rajeshwar Singh Jenwar <[EMAIL PROTECTED]

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Rajeshwar Singh Jenwar
how come ? plz explain. On 6/13/06, Girish Venkatachalam <[EMAIL PROTECTED]> wrote: bcoz d2i resolves to d2i_X509() , not tod2i_PrivateKey--- �� < [EMAIL PROTECTED]> wrote:> when i use PEM_read_PrivateKey find it work error> ,so i look into> PEM_read_PrivateKey to find the reason.> first i fin

Re: i am confused in PEM_read_PrivateKey

2006-06-13 Thread Girish Venkatachalam
bcoz d2i resolves to d2i_X509() , not to d2i_PrivateKey --- �� ���� <[EMAIL PROTECTED]> wrote: > when i use PEM_read_PrivateKey find it work error > ,so i look into > PEM_read_PrivateKey to find the reason. > first i find in > #define PEM_read_PrivateKey(fp,x,cb,u) (EVP_PKEY >

i am confused in PEM_read_PrivateKey

2006-06-13 Thread 孙 金龙
when i use PEM_read_PrivateKey find it work error ,so i look into PEM_read_PrivateKey to find the reason. first i find in #define PEM_read_PrivateKey(fp,x,cb,u) (EVP_PKEY *)PEM_ASN1_read( \ (char *(*)())d2i_PrivateKey,PEM_STRING_EVP_PKEY,fp,(char **)x,cb,u) next i find in void *PEM_ASN1_r