[prev in list] [next in list] [prev in thread] [next in thread]
List: openssl-users
Subject: Strange BIO_new(BIO_s_file()) behaviour
From: Scratch <scratch.net () gmail ! com>
Date: 2005-09-26 6:03:43
Message-ID: e30be75a0509252303433ad591 () mail ! gmail ! com
[Download RAW message or body]
In the 1st example everything is ok, fout points to BIO structure:
void main()
{
BIO *fout;
fout=BIO_new(BIO_s_file());
}
BUT if I'll put this code in a separate procedure fout points to nothing:
void Encrypt(unsigned char *pass, unsigned char *plaintext)
{
BIO *fout;
fout=BIO_new(BIO_s_file());
}
void main()
{
Encrypt(foo,bar);
}
Am i missing smth?
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic