Click here to Skip to main content
11,638,745 members (74,301 online)

C / C++ / MFC

 
GeneralRe: CView advice Pin
Richard MacCutchan27-Sep-13 21:08
mvpRichard MacCutchan27-Sep-13 21:08 
QuestionWhy does Linker has MIDL options, if .idl file is processed before c++ compiling process? Pin
fb_serwe25-Sep-13 20:20
memberfb_serwe25-Sep-13 20:20 
AnswerRe: Why does Linker has MIDL options, if .idl file is processed before c++ compiling process? Pin
CPallini25-Sep-13 21:34
mvpCPallini25-Sep-13 21:34 
GeneralRe: Why does Linker has MIDL options, if .idl file is processed before c++ compiling process? Pin
fb_serwe25-Sep-13 23:52
memberfb_serwe25-Sep-13 23:52 
GeneralRe: Why does Linker has MIDL options, if .idl file is processed before c++ compiling process? Pin
Richard MacCutchan26-Sep-13 0:31
mvpRichard MacCutchan26-Sep-13 0:31 
Questionsoftware update solution Pin
koll060425-Sep-13 17:20
memberkoll060425-Sep-13 17:20 
AnswerRe: software update solution Pin
Richard Andrew x6425-Sep-13 18:21
professionalRichard Andrew x6425-Sep-13 18:21 
GeneralRe: software update solution Pin
koll060425-Sep-13 20:32
memberkoll060425-Sep-13 20:32 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 2:39
professionalRichard Andrew x6426-Sep-13 2:39 
GeneralRe: software update solution Pin
koll060426-Sep-13 14:48
memberkoll060426-Sep-13 14:48 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 17:34
professionalRichard Andrew x6426-Sep-13 17:34 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 11:09
professionalRichard Andrew x6426-Sep-13 11:09 
GeneralRe: software update solution Pin
koll060426-Sep-13 15:06
memberkoll060426-Sep-13 15:06 
Questionwhy gSOAP only require the root CA when accessing HTTPS? Pin
szh12125-Sep-13 17:10
memberszh12125-Sep-13 17:10 
I have a self-signed CA Root. An intermediate certificate was signed by this CA Root, and my server is the 3rd level which is signed by the intermediate certificate. What i have is like:

CA Root --> Intermediate Cert --> Server Cert

What i'm using is the function soap_ssl_client_context() to connect to the server and calling its web services. The function soap_ssl_client_context() requires one certificate file with PEM format as the cert file of the server.

The fact i'm facing is that, if i only put the CA Root certificate only (without the intermediate cert and server cert) in the PEM file, all the connection and web service calling are succeed. Is that reasonable? I mean it can pass the verification if only CA Root was provided. Is there anyway to make it verify the full certificate chain instead just the CA root?

The code looks like bellow:
try 
{
    soap_ssl_init();
    soap_init(soap);
 
    if (soap_ssl_client_context(
        soap, 
        SOAP_SSL_DEFAULT,
        NULL,   /* keyfile: required only when client must authenticate to server (see SSL docs on how to obtain this file) */ 
        NULL,    /* password to read the key file (not used with GNUTLS) */ 
        "C:\\certfiles.pem", /* cacert file to store trusted certificates (needed to verify server) */              
        NULL,  /* capath to directory with trusted certificates */ 
        NULL     /* if randfile!=NULL: use a file with random data to seed randomness */ 
        ))
    { 
        isSucceed = false;
    }
 
} catch (...) {
    isSucceed = false;
}

Any comment will be appreciated. Thanks.
AnswerRe: why gSOAP only require the root CA when accessing HTTPS? Pin
Richard MacCutchan25-Sep-13 21:39
mvpRichard MacCutchan25-Sep-13 21:39 
Questionhow to make this working: srand(time(NULL)); Pin
mrby12325-Sep-13 12:58
membermrby12325-Sep-13 12:58 
AnswerRe: how to make this working: srand(time(NULL)); Pin
Richard Andrew x6425-Sep-13 13:12
professionalRichard Andrew x6425-Sep-13 13:12 
QuestionCRegKey read from registry? Pin
bosfan25-Sep-13 6:19
memberbosfan25-Sep-13 6:19 
AnswerRe: CRegKey read from registry? Pin
Richard Andrew x6425-Sep-13 7:47
professionalRichard Andrew x6425-Sep-13 7:47 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 21:46
memberbosfan25-Sep-13 21:46 
AnswerRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 21:37
mvpRichard MacCutchan25-Sep-13 21:37 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 21:45
memberbosfan25-Sep-13 21:45 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:03
mvpRichard MacCutchan25-Sep-13 22:03 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 22:32
memberbosfan25-Sep-13 22:32 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:45
mvpRichard MacCutchan25-Sep-13 22:45 
GeneralRe: CRegKey read from registry? Pin
bosfan26-Sep-13 20:42
memberbosfan26-Sep-13 20:42 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan26-Sep-13 21:30
mvpRichard MacCutchan26-Sep-13 21:30 
QuestionSocket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 0:47
membermanoharbalu25-Sep-13 0:47 
AnswerRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 1:01
mvpRichard MacCutchan25-Sep-13 1:01 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 2:24
membermanoharbalu25-Sep-13 2:24 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 2:59
mvpRichard MacCutchan25-Sep-13 2:59 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 19:12
membermanoharbalu25-Sep-13 19:12 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 21:28
mvpRichard MacCutchan25-Sep-13 21:28 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 22:11
membermanoharbalu25-Sep-13 22:11 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 22:21
mvpRichard MacCutchan25-Sep-13 22:21 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu26-Sep-13 3:36
membermanoharbalu26-Sep-13 3:36 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan26-Sep-13 4:20
mvpRichard MacCutchan26-Sep-13 4:20 
GeneralRe: Socket Communication - Server with 2 different clients Pin
koll060425-Sep-13 16:17
memberkoll060425-Sep-13 16:17 
AnswerRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 21:17
mvpRichard MacCutchan25-Sep-13 21:17 
AnswerRe: Socket Communication - Server with 2 different clients Pin
Malli_S25-Sep-13 2:24
memberMalli_S25-Sep-13 2:24 
QuestionClarification regarding the function CAsyncSocket::GetPeerName() Pin
manoharbalu25-Sep-13 0:14
membermanoharbalu25-Sep-13 0:14 
AnswerRe: Clarification regarding the function CAsyncSocket::GetPeerName() Pin
Richard MacCutchan25-Sep-13 0:22
mvpRichard MacCutchan25-Sep-13 0:22 
GeneralRe: Clarification regarding the function CAsyncSocket::GetPeerName() Pin
manoharbalu25-Sep-13 0:48
membermanoharbalu25-Sep-13 0:48 
Questionset the version Pin
koll060424-Sep-13 23:29
memberkoll060424-Sep-13 23:29 
AnswerRe: set the version Pin
Richard MacCutchan25-Sep-13 0:23
mvpRichard MacCutchan25-Sep-13 0:23 
GeneralRe: set the version Pin
koll060425-Sep-13 0:46
memberkoll060425-Sep-13 0:46 
GeneralRe: set the version Pin
koll060425-Sep-13 0:51
memberkoll060425-Sep-13 0:51 
QuestionRe: set the version Pin
Maximilien25-Sep-13 8:03
memberMaximilien25-Sep-13 8:03 
AnswerRe: set the version Pin
koll060425-Sep-13 16:06
memberkoll060425-Sep-13 16:06 
Questiondoes listivew_???? make handles leak...? Pin
JoneLe8624-Sep-13 19:10
memberJoneLe8624-Sep-13 19:10 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 30 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid