Click here to Skip to main content
15,923,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I make the pop-up dialog resizable ? Pin
Naveen23-Apr-08 23:54
Naveen23-Apr-08 23:54 
AnswerRe: How can I make the pop-up dialog resizable ? Pin
_AnsHUMAN_ 23-Apr-08 23:56
_AnsHUMAN_ 23-Apr-08 23:56 
GeneralRe: How can I make the pop-up dialog resizable ? Pin
cagespear24-Apr-08 0:12
cagespear24-Apr-08 0:12 
QuestionHow do I create a propeties file Pin
pl_kode23-Apr-08 23:46
pl_kode23-Apr-08 23:46 
GeneralRe: How do I create a propeties file Pin
Saurabh.Garg24-Apr-08 2:17
Saurabh.Garg24-Apr-08 2:17 
Generalwin32 openssl based client socket application [modified] Pin
amit_pansuria23-Apr-08 23:25
amit_pansuria23-Apr-08 23:25 
GeneralRe: win32 openssl based client socket application Pin
Mark Salsbery24-Apr-08 6:26
Mark Salsbery24-Apr-08 6:26 
GeneralRe: win32 openssl based client socket application Pin
amit_pansuria25-Apr-08 19:35
amit_pansuria25-Apr-08 19:35 
thx Mark for replying me.
I want to write client application on windows operating sysystem(vc++) .

suppose if i creat follow the steps
I m writing steps for client below

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>

#include <winsock2.h>
#include
#include
#include
#include
#include
#include

(1) create the socket
sock = (sock=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP)

(2) connect the socket to the host

connect (sock, (struct sockaddr*) &sa, sizeof (sa))

(3) now my dought comes,
i want to use openssl API on the socket descriptor sock shown in the above step returned by socket() and connect() of Winsock2.h

steps for this are:

SSL_library_init();
SSL_load_error_strings();
SSLeay_add_ssl_algorithms();
meth = SSLv23_client_method();
ctx = SSL_CTX_new (meth);
SSL_CTX_set_options(ctx,0);
SSL_CTX_set_verify(ctx,SSL_VERIFY_NONE,NULL);
X509_STORE* store = SSL_CTX_get_cert_store(ctx);
X509_STORE_set_flags(store, 0);
ssl = SSL_new (ctx);
BIO* sbio=BIO_new_socket(conn_fd,BIO_NOCLOSE);
SSL_set_bio(pDialerCB->ssl,sbio,sbio);
SSL_set_connect_state(pDialerCB->ssl);
printf("SSL set connect state\n");


peer=SSL_get_peer_certificate(ssl);


after that SSL_read() and SSL_write()

tell me whethere its work or not

Regards,
Amit
GeneralRe: win32 openssl based client socket application Pin
Mark Salsbery26-Apr-08 6:22
Mark Salsbery26-Apr-08 6:22 
Questionhow to create a hook which monitors foreground windows using WinCE for Pocket PC Pin
Shashi.Shinde23-Apr-08 23:04
Shashi.Shinde23-Apr-08 23:04 
AnswerRe: how to create a hook which monitors foreground windows using WinCE for Pocket PC Pin
Cedric Moonen23-Apr-08 23:13
Cedric Moonen23-Apr-08 23:13 
GeneralRe: how to create a hook which monitors foreground windows using WinCE for Pocket PC Pin
Shashi.Shinde23-Apr-08 23:41
Shashi.Shinde23-Apr-08 23:41 
GeneralRe: how to create a hook which monitors foreground windows using WinCE for Pocket PC Pin
Cedric Moonen23-Apr-08 23:50
Cedric Moonen23-Apr-08 23:50 
AnswerRe: how to create a hook which monitors foreground windows using WinCE for Pocket PC Pin
Naveen23-Apr-08 23:44
Naveen23-Apr-08 23:44 
GeneralRe: how to create a hook which monitors foreground windows using WinCE for Pocket PC Pin
Shashi.Shinde24-Apr-08 1:50
Shashi.Shinde24-Apr-08 1:50 
GeneralUsing Wuapi at visual c++ Pin
monsieur_jj23-Apr-08 22:42
monsieur_jj23-Apr-08 22:42 
GeneralFile operation Pin
Chandrasekharan P23-Apr-08 22:33
Chandrasekharan P23-Apr-08 22:33 
QuestionRe: File operation Pin
CPallini23-Apr-08 22:49
mveCPallini23-Apr-08 22:49 
GeneralRe: File operation Pin
Chandrasekharan P23-Apr-08 22:51
Chandrasekharan P23-Apr-08 22:51 
GeneralRe: File operation Pin
CPallini23-Apr-08 23:17
mveCPallini23-Apr-08 23:17 
GeneralRe: File operation Pin
David Crow24-Apr-08 3:59
David Crow24-Apr-08 3:59 
Generalpassing a value from one exe to another Pin
Le@rner23-Apr-08 22:20
Le@rner23-Apr-08 22:20 
GeneralRe: passing a value from one exe to another Pin
CPallini23-Apr-08 22:30
mveCPallini23-Apr-08 22:30 
AnswerRe: passing a value from one exe to another Pin
prasad_som24-Apr-08 2:05
prasad_som24-Apr-08 2:05 
QuestionUsername & password!! Pin
Ajay L D23-Apr-08 22:19
Ajay L D23-Apr-08 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.