Re: New engines.
man 3 engine --- Juan Segarra Montesinos http://spisa.act.uji.es/~juan/ On Tue, 10 Aug 2004, Roberto Gallo wrote: Hi, I would like to develop a new engine with some crypto functions to with OpenSSL. Where can I get information about the API? Where should I start? Thank you, Roberto Gallo __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: How to convert a buffer to an intern structure???
You can use a memory bio and then the appropiate PEM I/O function. Something like: BIO *bioMem; char *keyBuffer; X509 *cert; /* Read de buffer (bla,bla,bla) :-) */ /* And now... */ bioMem =3D BIO_new_mem_buf(keyBuffer, keyBufferLen); cert =3D PEM_read_bio_X509(bioMem,NULL,NULL,NULL); --- Juan Segarra http://spisa.act.uji.es/~juan __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
OpenSSL based CSP
Hi. Has anyone implemented a Microsoft CAPI CSP using OpenSSL? I found in the archives a mail from Sergio Tabanelli saying that everyone can request source code of his own OpenSSL/SSLeay based CSP. However I haven't received any answer, and I'm very interested in this topic. Thanks in advance, Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
SSL_connect()
Hi. I've wrote a small https client. I have a problem with SSL_connect() function. I don't know what i'm doing wrong. When i want to stablish a connection with a server i create a blocking connect bio and bind it to the SSL object. I use a verify callback function in order to perform aditional checks to the chain presented by the server. The problem is that when the callback returns 0 (indicating an error) SSL_connect() hangs. Is this the right behaviour? Thanks, Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: SSL_connect()
On Mon, 18 Aug 2003, Lutz Jaenicke wrote: SSL_connect() hangs. Is this the right behaviour? No. This behaviour is not correct. So, is this a bug in the library? Thanks for the answer, Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: SSL_connect()
On Mon, 18 Aug 2003, Juan Segarra wrote: On Mon, 18 Aug 2003, Lutz Jaenicke wrote: SSL_connect() hangs. Is this the right behaviour? No. This behaviour is not correct. So, is this a bug in the library? No. This is a bug in my brain :-P The bug, as i expected, is in my code, not in the ssl library. Thanks and sorry for the waste of time :-) Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
SSL_connect() problem?
Hi. I'm writing a small class that uses the ssl library. The problem ( I'm not sure who has the problem :-P ) is that SSL_connect() blocks when the verify callback function returns 0. If it returns 1 all goes as expected. I'm using a blocking connect bio as the underlaying bio for the SSL object. And i'm programming my client in windows. Is this a wrong behaviour or i'm missing something?? Thanks in advance, Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Why the result of messages digest using md5 differs
On Sun, 14 Jul 2002, hongbin tang wrote: Hi, All; Why the result of messages digest using md5 differs from using openssl md5? for example. # md5 -q -s hello 5d41402abc4b2a76b9719d911017c592 but when I used openssl. #echo hello | openssl md5 f447b20a7fcbf53a5d5be013ea0b15af why are they different? I used openssl 0.9.6d on FreeBsd4.2 UNIX. echo puts a newline character at the end of the string. Try this: echo -n hello | openssl md5 __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Beginner's questions with openssl API
On Mon, 7 Jan 2002, Mack Stevenson wrote: Hi Bear, Thank you for replying. - I gather that it's a bad idea to just encrypt all the files with the passphrase chosen by the user, right? You don't use the passphrase *directly*, but you should certainly use the user's passphrase. Run it through a cryptographic hash and use the results as your encryption key. Can I use either the SHA or RIPEMD-160 hashes from openssl for this purpose? You should use the PBE (Password Based Encryption) routines instead of hashing directly. They are based on PKCS#5 (1.5 and 2.0) and PKCS#12. You can take a look at my EVP tutorial (sorry but i don't know any other :-P)... http://spisa.act.uji.es/~juan/tutoriales/openssl/evp/ Unfortunately by now it's in spanish, but the code could help you. Hope you can find it useful. Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: EVP_* Routines
On 2 Jan 2002, Chris Plant wrote: I've compiled the attached code, and it doesn't decrypt the text correctly. If anyone could explain why to me, or point out a nice tutorial about using these routines, it would be much appreciated. I've been writing a tutorial about EVP routines in spanish (i'll wrote an english version after my exams :-P)... perhaps you'll find it useful (or useless :-P). http://spisa.act.uji.es/~juan/tutoriales/openssl/evp/ je,je,je... use at yout own risk ;-P __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: PEM_read_RSAPublicKey
On Fri, 16 Nov 2001, Takaaki Ishii wrote: Hylton Tregenza wrote: Sorry, I asked to early, There is nothing wrong with the code. The file is not a public key file (or the format isd wrong) How do I extract a public key file from a certificate? How about to use X509_get_pubkey function? Perhaps demos/sign/sign.c will be useful... Juan. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]