Click here to Skip to main content
12,395,227 members (71,972 online)
Rate this:
 
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 1:36am
raniam505
Comments
Mohibur Rashid 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2016
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