RE: RSA key

2011-04-14 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of David Schwartz > Sent: Wednesday, 13 April, 2011 18:55 > On 4/13/2011 2:35 AM, pattabi raman wrote: > > > *1. If I can't use sprintf then how can I copy the enrypted > message to a > > character buffer. Bcoz so far I am sending the request to

RE: OpenSSL SSL_Accept Error

2011-04-14 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Harshvir Sidhu > Sent: Wednesday, 13 April, 2011 08:29 > Server is Single Threaded and is handling all the connections > in while(1) loop, the sockets are blocking but I am using FD_SET options, > not sure if that could be in

Re: OPENSSL process not running via /etc/conf/init.d

2011-04-14 Thread Brian Reichert
On Thu, Apr 14, 2011 at 04:42:30PM +0400, pattabi raman wrote: > Hi, > > I am have developed the openssl enctyption program using C program and can > able to run it manually. But when I want to run the process through intitab > in solaris, its not running. [snip] > But the process is getting kil

SSL_read() fails right after the failure of SSL_do_handsahake() on client side

2011-04-14 Thread Yan, Bob
Hi, I have a simple SSL Client and SSL Server program. SSL Client connects to SSL Server via an established ssl session and transmit data each other. Every time when SSL Server invokes the SSL_write() function and successful wrote some data into the ssl session, if, at the same time, the SSL Cl

valgrind error (not PROG13)

2011-04-14 Thread Steven Friedman
On CentOS 5.5 (RPM package openssl-0.9.8e-12.el5_5.7), I am getting valgrind errors. Although I include what appears to be the full complement of PROG13 recommended cleanup code: ERR_remove_state(0); ENGINE_cleanup(); CONF_modules_free(); CONF_modules_unload(1); E

Re: How to retrieve serial number

2011-04-14 Thread Steven Friedman
Yes, it does take a while to dig through the docs to find things... ASN1_INTEGER * val = X509_get_serialNumber(x); int len = ASN1_STRING_length(val); unsigned char * p = ASN1_STRING_data(val); Then, you can go through the character string to build up as you want.

How to retrieve serial number

2011-04-14 Thread ikuzar
Hello, I 'd like to retrieve serial number from X509 certificate, then store this sn in a memory pointed by char* sn ( in PEM or DER format). I did not find any function... Is there any combination of some functions to obtain it ? Thanks for your help.

OPENSSL process not running via /etc/conf/init.d

2011-04-14 Thread pattabi raman
Hi, I am have developed the openssl enctyption program using C program and can able to run it manually. But when I want to run the process through intitab in solaris, its not running. As I dig more I found that whenever I included the openssl headerfiles and compiled my c program with the foll

RE: command line to c++ code

2011-04-14 Thread luis hernandez
> Date: Wed, 13 Apr 2011 16:17:45 -0700 > From: pie...@hogranch.com > To: openssl-users@openssl.org > Subject: Re: command line to c++ code > > On 04/13/11 4:11 PM, luis hernandez wrote: > > > > > take a look at the source to openssl (the executable utility). I > > > believe its in C and it, o