Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900