RE: SSL overhead

2008-04-16 Thread David Schwartz
> One more question: I'm working on an ansynchronous framework, and > there's a "poll" method that gets called in each iteration. In our > sockets, this method's supposed to do whatever needs doing, and return > how many bytes are waiting to be read from the socket, so the return > value should be

Re: SSL overhead

2008-04-16 Thread Tomas Neme
does one of the flags in the BIO object say anything about the blocking nature of the BIO? For example, does SSL_connect return automatically or not depending on the BIO flags, or on the BIO_write and read return values? T -- |_|0|_| |_|_|0| |0|0|0| (\__/) (='.'=)This is Bunny. Copy and paste b

Re: SSL overhead

2008-04-16 Thread Tomas Neme
One more question: I'm working on an ansynchronous framework, and there's a "poll" method that gets called in each iteration. In our sockets, this method's supposed to do whatever needs doing, and return how many bytes are waiting to be read from the socket, so the return value should be the value

Usage of extensions basicconstraints from CLI

2008-04-16 Thread Otto Roberson Bertsch
Hello, I am attempting to create a self-signed x509 cert. with basic constraints set to critical,CA:true,pathlen:5 using the following command (and various permutations of the same): "openssl req -new -key /etc/apache2/key-ca.pem -x509 -extensions basicConstraints=critical,CA:TRUE,pathlen:5 -days

RE: Public key from a x509v3 certificate

2008-04-16 Thread David Schwartz
> Thank's for the answer, but i still got a little problem, > when i run this code : > EVP_PKEY *key2 = X509_get_pubkey(certif.getX509Certificate()); > cout << BN_bn2hex(key2->pkey.rsa->n); > I miss the first 00 of the public key... > How can i get them ? The leading '00' is part of the DER enc

Using OpenSSL cryptographic functions in a multi-threaded application

2008-04-16 Thread wang yanbo
Hi: We are using only the OpenSSL cryptographic functionality, the EVP and HMAC functions, in a multi-threaded application. Do we need to do anything to ensure thread safety ? The documentation mentions CRYPTO_set_locking_callback() and CRYPTO_set_id_callback() ,but we are not calling these fu

Re: Public key from a x509v3 certificate

2008-04-16 Thread delcour.pierre
Hello, Thank's for the answer, but i still got a little problem, when i run this code : EVP_PKEY *key2 = X509_get_pubkey(certif.getX509Certificate()); cout << BN_bn2hex(key2->pkey.rsa->n); I miss the first 00 of the public key... How can i get them ? [EMAIL PROTECTED] wrote: Hello, [EMAI

PEM_write_RSAPublicKey() stops performing the program

2008-04-16 Thread Kirill Ivanov
Hello, my name is Kirill! (OpenssL 0.9.8g for Win32) Problem: program stops performing on PEM_write_RSAPublicKey() (the same is with PEM_write_RSAPrivateKey()) I tried other code examples with PEM_write_RSAPublicKey() - the result is the same! Please, here is the code (Visual C++ 6.0): //

Disabling mail delivery for this list.

2008-04-16 Thread Jurko Gospodnetić
Hi all. I read and post to this mailing list using the gmane NNTP interface. Is there a way to disable the list's mail delivery so I do not have to get the same messages delivered to my mailbox as well? Many thanks. Best regards, Jurko Gospodnetić ___

Re: which Asymetic algorithem that pkcs7_sign and pkcs_encrypt

2008-04-16 Thread Dr. Stephen Henson
On Wed, Apr 16, 2008, shankar ks wrote: > Hi , > Do any one have an idea of which algorithems that pkcs7_sign and > pkcs_encrypt Api's will use internally. I wanted to use only Rsa Algorithems > for signing and encryption. but not sure about how to set those Rsa > algorithem before calling sign an

Re: Public key from a x509v3 certificate

2008-04-16 Thread Marek . Marcola
Hello, [EMAIL PROTECTED] wrote on 04/15/2008 06:30:10 PM: > Hello, > > I'm looking to get back the public key from a x509 v3 certificate. > > I use the function ASN1_BIT_STRING * key = 509_get0_pubkey_bitstr(x509* > certificate); but i don't get what i want : > I get (from a conversion to hex

Public key from a x509v3 certificate

2008-04-16 Thread delcour.pierre
Hello, I'm looking to get back the public key from a x509 v3 certificate. I use the function ASN1_BIT_STRING * key = 509_get0_pubkey_bitstr(x509* certificate); but i don't get what i want : I get (from a conversion to hexadecimal thanks to : cout << setw(2) << setfill('0') << right << hex <<