Error cross-compiling openssl 1.X on mingw-w64

2012-03-30 Thread Leandro Santiago
Hello to all. I'm using mingw-w64 (targeting win32) to cross compile openssl. I'm using a current snapshot of mingw-w64 (gcc-4.7.0) and openssl-1.0.1 (but I had the same error with 1.0.0) and tried in two different machines, one with ubuntu 11.04 32-bit and another with kubuntu 11.10 64-bit. The

Re: Error cross-compiling openssl 1.X on mingw-w64

2012-03-30 Thread Leandro Santiago
Hello to all. I'm using mingw-w64 (targeting win32) to cross compile openssl. I'm using a current snapshot of mingw-w64 (gcc-4.7.0)  and openssl-1.0.1 (but I had the same error with 1.0.0) and tried in two different machines, one with ubuntu 11.04 32-bit and another with kubuntu 11.10 64-bit. The

Re: How can I load a PEM key stored in a string instead from a file?

2010-10-29 Thread Leandro Santiago
()? 2010/10/27 Dr. Stephen Henson st...@openssl.org: On Wed, Oct 27, 2010, Leandro Santiago wrote: Ok. I've found the implementation of that function: EVP_PKEY *PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u)       {         BIO *b;         EVP_PKEY *ret

Re: How can I load a PEM key stored in a string instead from a file?

2010-10-29 Thread Leandro Santiago
-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Leandro Santiago Sent: Friday, October 29, 2010 7:26 AM To: openssl-users@openssl.org Subject: Re: How can I load a PEM key stored in a string instead from a file? Thanks to all. I've resolved my first problem

How can I load a PEM key stored in a string instead from a file?

2010-10-26 Thread Leandro Santiago
Hello to all. I'm using the openssl api in a C application. Currently to load a private key (generated by openssl command), I do: _privKeyFile = fopen(filename, rt); _privKey = PEM_read_PrivateKey(_privKeyFile, NULL, NULL, NULL); _rsa = EVP_PKEY_get1_RSA(_privKey); The _rsa is the object I

Re: How can I load a PEM key stored in a string instead from a file?

2010-10-26 Thread Leandro Santiago
Sorry. I don't understand everything. Do you have any code example? I've tried to read the source code of these functions, but PEM_read_PrivateKey is a macro (and I hate read big macros) :-( 2010/10/26 Wim Lewis w...@omnigroup.com: PEM_read_PrivateKey() is a wrapper around PEM_ASN1_read() (which

IRC channel to live conversations?

2010-10-05 Thread Leandro Santiago
Hello to all. I'm new in the list, so I could see there isn't any irc channel where users can talk to. Are there any oficial or even extra-oficial irc channel to openssl users? regards. __ OpenSSL Project

Re: Basics concepts about openssl+rsa

2010-08-18 Thread Leandro Santiago
in the Internet? I've really liked openssl, but I don't know where to start. Is there a irc channel where users can talk? Regards 2010/8/17 Leandro Santiago leandrosansi...@gmail.com: Thx. I'll read these documents. In my system the keys aren't generated in instalation-time, but I have both the keys

Basics concepts about openssl+rsa

2010-08-17 Thread Leandro Santiago
Hello to all. I'm really new in openssl. In my application I will use openssl to encrpypt some password strings using rsa. I've generated the pair of keys with openssl command line and now I want to use this pair to crypt and encrypt these strings. It's really a basic doubt: How can I parse a

Re: Basics concepts about openssl+rsa

2010-08-17 Thread Leandro Santiago
Thx. I'll read these documents. In my system the keys aren't generated in instalation-time, but I have both the keys, private and public pre-generated. Actually in my system the password based encrypt system works fine, and it's part of a larger subsystem. So the rsa idea has sounded good for me