From 876a13d858b70e6f2c34eaefad90d0577f5f1583 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 10 May 2004 10:46:26 +0000 Subject: [PATCH] Describe new SSL comstack functions --- doc/Makefile.am | 5 +++-- doc/asn.xml | 6 +++--- doc/comstack.xml | 43 ++++++++++++++++++++++++++++++++++++++++++- doc/yaz-ztest-man.xml | 3 ++- doc/ztest-options.xml | 7 ++++++- 5 files changed, 56 insertions(+), 8 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 2d20be5..787d92e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.54 2004-04-28 22:44:59 adam Exp $ +## $Id: Makefile.am,v 1.55 2004-05-10 10:46:26 adam Exp $ docdir=$(datadir)/doc/@PACKAGE@ @@ -12,7 +12,8 @@ HTMLFILES = \ client.commands.html client.html client.invoking.html client.searching.html \ comstack.addresses.html comstack.client.html comstack.common.html \ comstack.diagnostics.html comstack.html comstack.introduction.html \ - comstack.server.html comstack.summary.html credits.html future.html \ + comstack.server.html comstack.ssl.html comstack.summary.html \ + credits.html future.html \ indexdata.html installation.html installation.unix.html \ installation.win32.html introduction.api.html introduction.html \ license.html license.other.html odr.debugging.html odr.html \ diff --git a/doc/asn.xml b/doc/asn.xml index adf59de..fd3d649 100644 --- a/doc/asn.xml +++ b/doc/asn.xml @@ -1,4 +1,4 @@ - + The Z39.50 ASN.1 Module Introduction @@ -635,7 +635,7 @@ typedef struct Z_ext_typeent nextResultSetPositionint0 - presentStatusintZ_PRES_SUCCESS + presentStatusintZ_PresentStatus_success recordsZ_RecordsNULL @@ -665,7 +665,7 @@ typedef struct Z_ext_typeent Z_ReferenceIdNULL - deleteFunctionintZ_DeleteRequest_list + deleteFunctionintZ_DeleteResultSetRequest_list num_idsint0 diff --git a/doc/comstack.xml b/doc/comstack.xml index 335eb0d..890b5cd 100644 --- a/doc/comstack.xml +++ b/doc/comstack.xml @@ -1,4 +1,4 @@ - + The COMSTACK Module Synopsis (blocking mode) @@ -490,6 +490,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 diff --git a/doc/yaz-ztest-man.xml b/doc/yaz-ztest-man.xml index 3bc42cf..f0776cc 100644 --- a/doc/yaz-ztest-man.xml +++ b/doc/yaz-ztest-man.xml @@ -1,7 +1,7 @@ ]> - + @@ -25,6 +25,7 @@ + diff --git a/doc/ztest-options.xml b/doc/ztest-options.xml index 0606201..f7c4f93 100644 --- a/doc/ztest-options.xml +++ b/doc/ztest-options.xml @@ -1,5 +1,5 @@ @@ -65,6 +65,11 @@ statserv_options_block. + -C + fname + Sets SSL certificate file name for server (PEM). + + -v level -- 1.7.10.4