X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fcomstack.xml;h=e9516969020cd032fec80ec9057dfb240506e291;hb=635995241e865409ad462e33b0208d3a8ebfb14d;hp=335eb0d6d045d6ba1f617cfd6bc84d3348a2abc7;hpb=add5a2db6b4360b1b448ad09f991a3977eb1220d;p=yaz-moved-to-github.git diff --git a/doc/comstack.xml b/doc/comstack.xml index 335eb0d..e951696 100644 --- a/doc/comstack.xml +++ b/doc/comstack.xml @@ -1,4 +1,3 @@ - The COMSTACK Module Synopsis (blocking mode) @@ -101,7 +100,7 @@ if (buf) Common Functions - Managing Endpoints + Managing Endpoints COMSTACK cs_create(CS_TYPE type, int blocking, int protocol); @@ -162,7 +161,7 @@ if (buf) - Data Exchange + Data Exchange int cs_put(COMSTACK handle, char *buf, int len); @@ -431,7 +430,7 @@ if (buf) - <host> [ ':' <portnum> ] + <host> [ ':' <portnum> ] @@ -490,6 +489,47 @@ if (buf) + SSL + + + void *cs_get_ssl(COMSTACK cs); + + Returns the SSL handle, SSL * for comstack. If comstack + is not of type SSL, NULL is returned. + + + + + int cs_set_ssl_ctx(COMSTACK cs, void *ctx); + + Sets SSL context for comstack. The parameter is expected to be of type + SSL_CTX *. This function should be called just + after comstack has been created (before connect, bind, etc). + This function returns 1 for success; 0 for failure. + + + + + int cs_set_ssl_certificate_file(COMSTACK cs, const char *fname); + + Sets SSL certificate for comstack as a PEM file. This function + returns 1 for success; 0 for failure. + + + + + + int cs_get_ssl_peer_certificate_x509(COMSTACK cs, char **buf, int *len); + + This function returns the peer certificate. If successful, + *buf and *len holds + X509 buffer and length respectively. Buffer should be freed + with xfree. This function returns 1 for success; + 0 for failure. + + + + Diagnostics @@ -518,7 +558,7 @@ if (buf) - extern const char *cs_errlist[]; + extern const char *cs_errlist[];