By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,505 Members | 1,761 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,505 IT Pros & Developers. It's quick & easy.

c++, openssl & how to create SSL context

P: n/a
I am trying to add ssl support to the application:
- download http://www.openssl.org/source/openssl-0.9.8a.tar.gz
- compile it on windows XP as described in openssl/insatll.w32
- add object files to the VC project
- and use the following expression:

SSL_METHOD* pSSLMethod = SSLv3_client_method();
char sSSLFile[1024];
const char* pszRandFile = RAND_file_name(sSSLFile,
sizeof(sSSLFile));
if (pszRandFile == NULL) {
Disconnect();
return FALSE;
}

RAND_load_file(pszRandFile, -1);
if (RAND_status() == 0) {
Disconnect();
return FALSE;
}

SSL_CTX* pSSLContext = SSL_CTX_new(pSSLMethod);
if (pSSLContext == NULL) {
Disconnect();
return FALSE;
}

But last expression returned FALSE. Why pSSLContext = NULL, what is the
reason?
How to create SSL context? Is there some manual about ssl?

Nov 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Encapsulin wrote:
I am trying to add ssl support to the application:


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Jonathan

Nov 22 '05 #2

P: n/a
How to delete this message from group?

Nov 22 '05 #3

P: n/a
Encapsulin wrote:

[Please quote the message you are answering to]
How to delete this message from group?


You can't, it's too late. Next time, make sure you read a newsgroup's
charter before posting. But thanks anyways, you seldom see someone
wanting to delete his post.
Jonathan

Nov 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.