Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
Hi,,
 
I'm building an SSL client/server application (in separate projects), and i'm trying to send a digital certificate from the client to the server using SendString() method, but the problem is that the certificate i'm trying to send is of type "CkCert* " (since i'm using the chilkat software component), and the sendString() method only takes a "String" type. And at the other end (server) the recieveString() method only takes a "String" type also.
 
So, kindly how can i convert the certificate from a "CkCert* " typt into a "const char *" type?
 
Regards
Posted 21-May-13 2:36am
raniam438
Comments
Mohibur Rashid at 21-May-13 23:34pm
   
did you try this function, exportCertPem ?
 
also follow the link
http://www.chilkatsoft.com/refdoc/vcCkCertRef.html

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

technically,there is no way to send CkCert derictly across sockets.What you can do is to mashal it if possible and so unmashal at the other side. or send the memory buffer and size, then cast to CkCert when fetch the exact buffer size.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 BillWoodruff 173
3 PIEBALDconsult 160
4 CPallini 155
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100