1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <!-- This manual is last updated 23 March 2015 for version
6 Copyright (C) 2001-2012, 2014 Free Software Foundation, Inc.
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.3 or
10 any later version published by the Free Software Foundation; with no
11 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
12 copy of the license is included in the section entitled "GNU Free
13 Documentation License". -->
14 <!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
16 <title>GnuTLS-Guile 3.3.26</title>
18 <meta name="description" content="GnuTLS-Guile 3.3.26">
19 <meta name="keywords" content="GnuTLS-Guile 3.3.26">
20 <meta name="resource-type" content="document">
21 <meta name="distribution" content="global">
22 <meta name="Generator" content="makeinfo">
23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24 <link href="#Top" rel="start" title="Top">
25 <link href="#Procedure-Index" rel="index" title="Procedure Index">
26 <link href="#SEC_Contents" rel="contents" title="Table of Contents">
27 <link href="dir.html#Top" rel="up" title="(dir)">
28 <style type="text/css">
30 a.summary-letter {text-decoration: none}
31 blockquote.indentedblock {margin-right: 0em}
32 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
33 blockquote.smallquotation {font-size: smaller}
34 div.display {margin-left: 3.2em}
35 div.example {margin-left: 3.2em}
36 div.lisp {margin-left: 3.2em}
37 div.smalldisplay {margin-left: 3.2em}
38 div.smallexample {margin-left: 3.2em}
39 div.smalllisp {margin-left: 3.2em}
40 kbd {font-style: oblique}
41 pre.display {font-family: inherit}
42 pre.format {font-family: inherit}
43 pre.menu-comment {font-family: serif}
44 pre.menu-preformatted {font-family: serif}
45 pre.smalldisplay {font-family: inherit; font-size: smaller}
46 pre.smallexample {font-size: smaller}
47 pre.smallformat {font-family: inherit; font-size: smaller}
48 pre.smalllisp {font-size: smaller}
49 span.nolinebreak {white-space: nowrap}
50 span.roman {font-family: initial; font-weight: normal}
51 span.sansserif {font-family: sans-serif; font-weight: normal}
52 ul.no-bullet {list-style: none}
60 padding: 5px 5px 5px 5px;
61 background-color: #c2e0ff;
65 padding: 2em 2em 2em 5%;
71 h2 { text-decoration: underline; }
76 pre.example,pre.verbatim {
79 border: solid #c2e0ff;
81 border-width: 1px 1px 1px 5px;
95 padding-bottom: 0.1em;
114 background-color: #c2e0ff;
115 border: solid #000000;
125 border: solid #000000;
126 background-color: #f0faff;
142 border: solid #c2e0ff;
144 border-width: 5px 1px 1px 1px;
155 <h1 class="settitle" align="center">GnuTLS-Guile 3.3.26</h1>
163 <a name="SEC_Contents"></a>
164 <h2 class="contents-heading">Table of Contents</h2>
166 <div class="contents">
168 <ul class="no-bullet">
169 <li><a name="toc-Preface-1" href="#Preface">1 Preface</a></li>
170 <li><a name="toc-Guile-Preparations-1" href="#Guile-Preparations">2 Guile Preparations</a></li>
171 <li><a name="toc-Guile-API-Conventions-1" href="#Guile-API-Conventions">3 Guile API Conventions</a>
172 <ul class="no-bullet">
173 <li><a name="toc-Enumerates-and-Constants-1" href="#Enumerates-and-Constants">3.1 Enumerates and Constants</a></li>
174 <li><a name="toc-Procedure-Names-1" href="#Procedure-Names">3.2 Procedure Names</a></li>
175 <li><a name="toc-Representation-of-Binary-Data-1" href="#Representation-of-Binary-Data">3.3 Representation of Binary Data</a></li>
176 <li><a name="toc-Input-and-Output-1" href="#Input-and-Output">3.4 Input and Output</a></li>
177 <li><a name="toc-Exception-Handling-1" href="#Exception-Handling">3.5 Exception Handling</a></li>
179 <li><a name="toc-Guile-Examples-1" href="#Guile-Examples">4 Guile Examples</a>
180 <ul class="no-bullet">
181 <li><a name="toc-Anonymous-Authentication-Guile-Example-1" href="#Anonymous-Authentication-Guile-Example">4.1 Anonymous Authentication Guile Example</a></li>
182 <li><a name="toc-OpenPGP-Authentication-Guile-Example-1" href="#OpenPGP-Authentication-Guile-Example">4.2 OpenPGP Authentication Guile Example</a></li>
183 <li><a name="toc-Importing-OpenPGP-Keys-Guile-Example-1" href="#Importing-OpenPGP-Keys-Guile-Example">4.3 Importing OpenPGP Keys Guile Example</a></li>
185 <li><a name="toc-Guile-Reference-1" href="#Guile-Reference">5 Guile Reference</a></li>
186 <li><a name="toc-Copying-Information-1" href="#Copying-Information">Appendix A Copying Information</a></li>
187 <li><a name="toc-Procedure-Index-1" href="#Procedure-Index">Procedure Index</a></li>
188 <li><a name="toc-Concept-Index-1" href="#Concept-Index">Concept Index</a></li>
196 Next: <a href="#Preface" accesskey="n" rel="next">Preface</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
198 <a name="GnuTLS_002dGuile"></a>
199 <h1 class="top">GnuTLS-Guile</h1>
201 <p>This manual is last updated 23 March 2015 for version
204 <p>Copyright © 2001-2012, 2014 Free Software Foundation, Inc.
207 <p>Permission is granted to copy, distribute and/or modify this document
208 under the terms of the GNU Free Documentation License, Version 1.3 or
209 any later version published by the Free Software Foundation; with no
210 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
211 copy of the license is included in the section entitled “GNU Free
212 Documentation License”.
216 <table class="menu" border="0" cellspacing="0">
217 <tr><td align="left" valign="top">• <a href="#Preface" accesskey="1">Preface</a>:</td><td> </td><td align="left" valign="top">Preface.
219 <tr><td align="left" valign="top">• <a href="#Guile-Preparations" accesskey="2">Guile Preparations</a>:</td><td> </td><td align="left" valign="top">Note on installation and environment.
221 <tr><td align="left" valign="top">• <a href="#Guile-API-Conventions" accesskey="3">Guile API Conventions</a>:</td><td> </td><td align="left" valign="top">Naming conventions and other idiosyncrasies.
223 <tr><td align="left" valign="top">• <a href="#Guile-Examples" accesskey="4">Guile Examples</a>:</td><td> </td><td align="left" valign="top">Quick start.
225 <tr><td align="left" valign="top">• <a href="#Guile-Reference" accesskey="5">Guile Reference</a>:</td><td> </td><td align="left" valign="top">The Scheme GnuTLS programming interface.
227 <tr><th colspan="3" align="left" valign="top"><pre class="menu-comment">
229 </pre></th></tr><tr><td align="left" valign="top">• <a href="#Copying-Information" accesskey="6">Copying Information</a>:</td><td> </td><td align="left" valign="top">You can copy and modify this manual.
231 <tr><td align="left" valign="top">• <a href="#Procedure-Index" accesskey="7">Procedure Index</a>:</td><td> </td><td align="left" valign="top">
233 <tr><td align="left" valign="top">• <a href="#Concept-Index" accesskey="8">Concept Index</a>:</td><td> </td><td align="left" valign="top">
238 <a name="Preface"></a>
241 Next: <a href="#Guile-Preparations" accesskey="n" rel="next">Guile Preparations</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
243 <a name="Preface-1"></a>
244 <h2 class="chapter">1 Preface</h2>
246 <p>This manual describes the <a href="http://www.gnu.org/software/guile/">GNU Guile</a> Scheme programming interface to GnuTLS. The reader is
247 assumed to have basic knowledge of the protocol and library. Details
248 missing from this chapter may be found in Function reference,
249 of the C API reference.
251 <p>At this stage, not all the C functions are available from Scheme, but
252 a large subset thereof is available.
255 <a name="Guile-Preparations"></a>
258 Next: <a href="#Guile-API-Conventions" accesskey="n" rel="next">Guile API Conventions</a>, Previous: <a href="#Preface" accesskey="p" rel="prev">Preface</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
260 <a name="Guile-Preparations-1"></a>
261 <h2 class="chapter">2 Guile Preparations</h2>
263 <p>The GnuTLS Guile bindings are available for both the 1.8 and 2.0 stable
266 <p>By default they are installed under the GnuTLS installation directory,
267 typically <samp>/usr/local/share/guile/site/</samp>). Normally Guile
268 will not find the module there without help. You may experience
271 <div class="example">
272 <pre class="example">$ guile
273 guile> (use-modules (gnutls))
274 <unnamed port>: no code for module (gnutls)
278 <p>There are two ways to solve this. The first is to make sure that when
279 building GnuTLS, the Guile bindings will be installed in the same
280 place where Guile looks. You may do this by using the
281 <code>--with-guile-site-dir</code> parameter as follows:
283 <div class="example">
284 <pre class="example">$ ./configure --with-guile-site-dir=no
287 <p>This will instruct GnuTLS to attempt to install the Guile bindings
288 where Guile will look for them. It will use <code>guile-config info
289 pkgdatadir</code> to learn the path to use.
291 <p>If Guile was installed into <code>/usr</code>, you may also install GnuTLS
292 using the same prefix:
294 <div class="example">
295 <pre class="example">$ ./configure --prefix=/usr
298 <p>If you want to specify the path to install the Guile bindings you can
299 also specify the path directly:
301 <div class="example">
302 <pre class="example">$ ./configure --with-guile-site-dir=/opt/guile/share/guile/site
305 <p>The second solution requires some more work but may be easier to use
306 if you do not have system administrator rights to your machine. You
307 need to instruct Guile so that it finds the GnuTLS Guile bindings.
308 Either use the <code>GUILE_LOAD_PATH</code> environment variable as follows:
310 <div class="example">
311 <pre class="example">$ GUILE_LOAD_PATH="/usr/local/share/guile/site:$GUILE_LOAD_PATH" guile
312 guile> (use-modules (gnutls))
316 <p>Alternatively, you can modify Guile’s <code>%load-path</code> variable
317 (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Build-Config">Guile’s run-time options</a> in <cite>The GNU Guile
318 Reference Manual</cite>).
320 <p>At this point, you might get an error regarding
321 <samp>libguile-gnutls-v-0</samp> similar to:
323 <div class="example">
324 <pre class="example">gnutls.scm:361:1: In procedure dynamic-link in expression (load-extension "libguile-gnutls-v-0" "scm_init_gnutls"):
325 gnutls.scm:361:1: file: "libguile-gnutls-v-0", message: "libguile-gnutls-v-0.so: cannot open shared object file: No such file or directory"
328 <p>In this case, you will need to modify the run-time linker path, for
331 <div class="example">
332 <pre class="example">$ LD_LIBRARY_PATH=/usr/local/lib GUILE_LOAD_PATH=/usr/local/share/guile/site guile
333 guile> (use-modules (gnutls))
337 <p>To check that you got the intended GnuTLS library version, you may
338 print the version number of the loaded library as follows:
340 <div class="example">
341 <pre class="example">$ guile
342 guile> (use-modules (gnutls))
343 guile> (gnutls-version)
350 <a name="Guile-API-Conventions"></a>
353 Next: <a href="#Guile-Examples" accesskey="n" rel="next">Guile Examples</a>, Previous: <a href="#Guile-Preparations" accesskey="p" rel="prev">Guile Preparations</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
355 <a name="Guile-API-Conventions-1"></a>
356 <h2 class="chapter">3 Guile API Conventions</h2>
358 <p>This chapter details the conventions used by Guile API, as well as
359 specificities of the mapping of the C API to Scheme.
361 <table class="menu" border="0" cellspacing="0">
362 <tr><td align="left" valign="top">• <a href="#Enumerates-and-Constants" accesskey="1">Enumerates and Constants</a>:</td><td> </td><td align="left" valign="top">Representation of C-side constants.
364 <tr><td align="left" valign="top">• <a href="#Procedure-Names" accesskey="2">Procedure Names</a>:</td><td> </td><td align="left" valign="top">Naming conventions.
366 <tr><td align="left" valign="top">• <a href="#Representation-of-Binary-Data" accesskey="3">Representation of Binary Data</a>:</td><td> </td><td align="left" valign="top">Binary data buffers.
368 <tr><td align="left" valign="top">• <a href="#Input-and-Output" accesskey="4">Input and Output</a>:</td><td> </td><td align="left" valign="top">Input and output.
370 <tr><td align="left" valign="top">• <a href="#Exception-Handling" accesskey="5">Exception Handling</a>:</td><td> </td><td align="left" valign="top">Exceptions.
375 <a name="Enumerates-and-Constants"></a>
378 Next: <a href="#Procedure-Names" accesskey="n" rel="next">Procedure Names</a>, Up: <a href="#Guile-API-Conventions" accesskey="u" rel="up">Guile API Conventions</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
380 <a name="Enumerates-and-Constants-1"></a>
381 <h3 class="section">3.1 Enumerates and Constants</h3>
383 <a name="index-enumerate"></a>
384 <a name="index-constant"></a>
386 <p>Lots of enumerates and constants are used in the GnuTLS C API. For
387 each C enumerate type, a disjoint Scheme type is used—thus,
388 enumerate values and constants are not represented by Scheme symbols
389 nor by integers. This makes it impossible to use an enumerate value
390 of the wrong type on the Scheme side: such errors are automatically
391 detected by type-checking.
393 <p>The enumerate values are bound to variables exported by the
394 <code>(gnutls)</code> module. These variables
395 are named according to the following convention:
398 <li> All variable names are lower-case; the underscore <code>_</code>
399 character used in the C API is replaced by hyphen <code>-</code>.
400 </li><li> All variable names are prepended by the name of the enumerate
401 type and the slash <code>/</code> character.
402 </li><li> In some cases, the variable name is made more explicit than the
403 one of the C API, e.g., by avoid abbreviations.
406 <p>Consider for instance this C-side enumerate:
408 <div class="example">
409 <pre class="example">typedef enum
411 GNUTLS_CRD_CERTIFICATE = 1,
415 } gnutls_credentials_type_t;
418 <p>The corresponding Scheme values are bound to the following variables
419 exported by the <code>(gnutls)</code> module:
421 <div class="example">
422 <pre class="example">credentials/certificate
423 credentials/anonymous
428 <p>Hopefully, most variable names can be deduced from this convention.
430 <p>Scheme-side “enumerate” values can be compared using <code>eq?</code>
431 (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Equality">equality predicates</a> in <cite>The GNU Guile Reference
432 Manual</cite>). Consider the following example:
434 <a name="index-session_002dcipher"></a>
436 <div class="example">
437 <pre class="example">(let ((session (make-session connection-end/client)))
443 ;; Check the ciphering algorithm currently used by SESSION.
444 (if (eq? cipher/arcfour (session-cipher session))
445 (format #t "We're using the ARCFOUR algorithm")))
448 <p>In addition, all enumerate values can be converted to a human-readable
449 string, in a type-specific way. For instance, <code>(cipher->string
450 cipher/arcfour)</code> yields <code>"ARCFOUR 128"</code>, while
451 <code>(key-usage->string key-usage/digital-signature)</code> yields
452 <code>"digital-signature"</code>. Note that these strings may not be
453 sufficient for use in a user interface since they are fairly concise
454 and not internationalized.
458 <a name="Procedure-Names"></a>
461 Next: <a href="#Representation-of-Binary-Data" accesskey="n" rel="next">Representation of Binary Data</a>, Previous: <a href="#Enumerates-and-Constants" accesskey="p" rel="prev">Enumerates and Constants</a>, Up: <a href="#Guile-API-Conventions" accesskey="u" rel="up">Guile API Conventions</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
463 <a name="Procedure-Names-1"></a>
464 <h3 class="section">3.2 Procedure Names</h3>
466 <p>Unlike C functions in GnuTLS, the corresponding Scheme procedures are
467 named in a way that is close to natural English. Abbreviations are
468 also avoided. For instance, the Scheme procedure corresponding to
469 <code>gnutls_certificate_set_dh_params</code> is named
470 <code>set-certificate-credentials-dh-parameters!</code>. The <code>gnutls_</code>
471 prefix is always omitted from variable names since a similar effect
472 can be achieved using Guile’s nifty binding renaming facilities,
473 should it be needed (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Using-Guile-Modules">Using Guile Modules</a> in <cite>The GNU
474 Guile Reference Manual</cite>).
476 <p>Often Scheme procedure names differ from C function names in a way
477 that makes it clearer what objects they operate on. For example, the
478 Scheme procedure named <code>set-session-transport-port!</code> corresponds
479 to <code>gnutls_transport_set_ptr</code>, making it clear that this
480 procedure applies to session.
483 <a name="Representation-of-Binary-Data"></a>
486 Next: <a href="#Input-and-Output" accesskey="n" rel="next">Input and Output</a>, Previous: <a href="#Procedure-Names" accesskey="p" rel="prev">Procedure Names</a>, Up: <a href="#Guile-API-Conventions" accesskey="u" rel="up">Guile API Conventions</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
488 <a name="Representation-of-Binary-Data-1"></a>
489 <h3 class="section">3.3 Representation of Binary Data</h3>
491 <p>Many procedures operate on binary data. For instance,
492 <code>pkcs3-import-dh-parameters</code> expects binary data as input and,
493 similarly, procedures like <code>pkcs1-export-rsa-parameters</code> return
496 <a name="index-SRFI_002d4"></a>
497 <a name="index-homogeneous-vector"></a>
499 <p>Binary data is represented on the Scheme side using SRFI-4 homogeneous
500 vectors (see <a href="http://www.gnu.org/software/guile/manual/guile.html#SRFI_002d4">SRFI-4</a> in <cite>The GNU Guile Reference Manual</cite>).
501 Although any type of homogeneous vector may be used, <code>u8vector</code>s
502 (i.e., vectors of bytes) are highly recommended.
504 <p>As an example, generating and then exporting RSA parameters in the PEM
505 format can be done as follows:
507 <a name="index-make_002drsa_002dparameters"></a>
508 <a name="index-pkcs1_002dexport_002drsa_002dparameters"></a>
509 <a name="index-x509_002dcertificate_002dformat_002fpem"></a>
511 <div class="example">
512 <pre class="example">(let* ((rsa-params (make-rsa-parameters 1024))
514 (pkcs1-export-rsa-parameters rsa-params
515 x509-certificate-format/pem)))
516 (uniform-vector-write raw-data (open-output-file "some-file.pem")))
519 <p>For an example of OpenPGP key import from a file, see <a href="#Importing-OpenPGP-Keys-Guile-Example">Importing OpenPGP Keys Guile Example</a>.
523 <a name="Input-and-Output"></a>
526 Next: <a href="#Exception-Handling" accesskey="n" rel="next">Exception Handling</a>, Previous: <a href="#Representation-of-Binary-Data" accesskey="p" rel="prev">Representation of Binary Data</a>, Up: <a href="#Guile-API-Conventions" accesskey="u" rel="up">Guile API Conventions</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
528 <a name="Input-and-Output-1"></a>
529 <h3 class="section">3.4 Input and Output</h3>
531 <a name="index-set_002dsession_002dtransport_002dport_0021"></a>
532 <a name="index-set_002dsession_002dtransport_002dfd_0021"></a>
534 <p>The underlying transport of a TLS session can be any Scheme
535 input/output port (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Ports-and-File-Descriptors">Ports and File Descriptors</a> in <cite>The GNU
536 Guile Reference Manual</cite>). This has to be specified using
537 <code>set-session-transport-port!</code>.
539 <p>However, for better performance, a raw file descriptor can be
540 specified, using <code>set-session-transport-fd!</code>. For instance, if
541 the transport layer is a socket port over an OS-provided socket, you
542 can use the <code>port->fdes</code> or <code>fileno</code> procedure to obtain the
543 underlying file descriptor and pass it to
544 <code>set-session-transport-fd!</code> (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Ports-and-File-Descriptors"><code>port->fdes</code> and <code>fileno</code></a> in <cite>The GNU Guile Reference
545 Manual</cite>). This would work as follows:
547 <div class="example">
548 <pre class="example">(let ((socket (socket PF_INET SOCK_STREAM 0))
549 (session (make-session connection-end/client)))
552 ;; Establish a TCP connection...
555 ;; Use the file descriptor that underlies SOCKET.
556 (set-session-transport-fd! session (fileno socket)))
559 <a name="index-session_002drecord_002dport"></a>
561 <p>Once a TLS session is established, data can be communicated through it
562 (i.e., <em>via</em> the TLS record layer) using the port returned by
563 <code>session-record-port</code>:
565 <div class="example">
566 <pre class="example">(let ((session (make-session connection-end/client)))
569 ;; Initialize the various parameters of SESSION, set up
570 ;; a network connection, etc...
573 (let ((i/o (session-record-port session)))
574 (write "Hello peer!" i/o)
575 (let ((greetings (read i/o)))
579 (bye session close-request/rdwr))))
582 <a name="index-record_002dsend"></a>
583 <a name="index-record_002dreceive_0021"></a>
585 <p>A lower-level I/O API is provided by <code>record-send</code> and
586 <code>record-receive!</code> which take an SRFI-4 vector to represent the
587 data sent or received. While it might improve performance, it is much
588 less convenient than the above and should rarely be needed.
592 <a name="Exception-Handling"></a>
595 Previous: <a href="#Input-and-Output" accesskey="p" rel="prev">Input and Output</a>, Up: <a href="#Guile-API-Conventions" accesskey="u" rel="up">Guile API Conventions</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
597 <a name="Exception-Handling-1"></a>
598 <h3 class="section">3.5 Exception Handling</h3>
600 <a name="index-exceptions"></a>
601 <a name="index-errors"></a>
602 <a name="index-gnutls_002derror"></a>
603 <a name="index-error_002d_003estring"></a>
605 <p>GnuTLS errors are implemented as Scheme exceptions (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Exceptions">exceptions in Guile</a> in <cite>The GNU Guile Reference Manual</cite>). Each
606 time a GnuTLS function returns an error, an exception with key
607 <code>gnutls-error</code> is raised. The additional arguments that are
608 thrown include an error code and the name of the GnuTLS procedure that
609 raised the exception. The error code is pretty much like an enumerate
610 value: it is one of the <code>error/</code> variables exported by the
611 <code>(gnutls)</code> module (see <a href="#Enumerates-and-Constants">Enumerates and Constants</a>). Exceptions
612 can be turned into error messages using the <code>error->string</code>
615 <p>The following examples illustrates how GnuTLS exceptions can be
618 <div class="example">
619 <pre class="example">(let ((session (make-session connection-end/server)))
628 (lambda (key err function . currently-unused)
629 (format (current-error-port)
630 "a GnuTLS error was raised by `~a': ~a~%"
631 function (error->string err)))))
634 <p>Again, error values can be compared using <code>eq?</code>:
636 <div class="example">
637 <pre class="example"> ;; `gnutls-error' handler.
638 (lambda (key err function . currently-unused)
639 (if (eq? err error/fatal-alert-received)
640 (format (current-error-port)
641 "a fatal alert was caught!~%")
642 (format (current-error-port)
643 "something bad happened: ~a~%"
644 (error->string err))))
647 <p>Note that the <code>catch</code> handler is currently passed only 3
648 arguments but future versions might provide it with additional
649 arguments. Thus, it must be prepared to handle more than 3 arguments,
654 <a name="Guile-Examples"></a>
657 Next: <a href="#Guile-Reference" accesskey="n" rel="next">Guile Reference</a>, Previous: <a href="#Guile-API-Conventions" accesskey="p" rel="prev">Guile API Conventions</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
659 <a name="Guile-Examples-1"></a>
660 <h2 class="chapter">4 Guile Examples</h2>
662 <p>This chapter provides examples that illustrate common use cases.
664 <table class="menu" border="0" cellspacing="0">
665 <tr><td align="left" valign="top">• <a href="#Anonymous-Authentication-Guile-Example" accesskey="1">Anonymous Authentication Guile Example</a>:</td><td> </td><td align="left" valign="top">Simplest client and server.
667 <tr><td align="left" valign="top">• <a href="#OpenPGP-Authentication-Guile-Example" accesskey="2">OpenPGP Authentication Guile Example</a>:</td><td> </td><td align="left" valign="top">Using OpenPGP-based authentication.
669 <tr><td align="left" valign="top">• <a href="#Importing-OpenPGP-Keys-Guile-Example" accesskey="3">Importing OpenPGP Keys Guile Example</a>:</td><td> </td><td align="left" valign="top">Importing keys from files.
674 <a name="Anonymous-Authentication-Guile-Example"></a>
677 Next: <a href="#OpenPGP-Authentication-Guile-Example" accesskey="n" rel="next">OpenPGP Authentication Guile Example</a>, Up: <a href="#Guile-Examples" accesskey="u" rel="up">Guile Examples</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
679 <a name="Anonymous-Authentication-Guile-Example-1"></a>
680 <h3 class="section">4.1 Anonymous Authentication Guile Example</h3>
682 <p><em>Anonymous authentication</em> is very easy to use. No certificates
683 are needed by the communicating parties. Yet, it allows them to
684 benefit from end-to-end encryption and integrity checks.
686 <p>The client-side code would look like this (assuming <var>some-socket</var>
687 is bound to an open socket port):
689 <a name="index-connection_002dend_002fclient"></a>
690 <a name="index-kx_002fanon_002ddh"></a>
691 <a name="index-close_002drequest_002frdwr"></a>
693 <div class="example">
694 <pre class="example">;; Client-side.
696 (let ((client (make-session connection-end/client)))
697 ;; Use the default settings.
698 (set-session-default-priority! client)
700 ;; Don't use certificate-based authentication.
701 (set-session-certificate-type-priority! client '())
703 ;; Request the "anonymous Diffie-Hellman" key exchange method.
704 (set-session-kx-priority! client (list kx/anon-dh))
706 ;; Specify the underlying socket.
707 (set-session-transport-fd! client (fileno some-socket))
709 ;; Create anonymous credentials.
710 (set-session-credentials! client
711 (make-anonymous-client-credentials))
713 ;; Perform the TLS handshake with the server.
716 ;; Send data over the TLS record layer.
717 (write "hello, world!" (session-record-port client))
719 ;; Terminate the TLS session.
720 (bye client close-request/rdwr))
723 <p>The corresponding server would look like this (again, assuming
724 <var>some-socket</var> is bound to a socket port):
726 <a name="index-connection_002dend_002fserver"></a>
728 <div class="example">
729 <pre class="example">;; Server-side.
731 (let ((server (make-session connection-end/server)))
732 (set-session-default-priority! server)
733 (set-session-certificate-type-priority! server '())
734 (set-session-kx-priority! server (list kx/anon-dh))
736 ;; Specify the underlying transport socket.
737 (set-session-transport-fd! server (fileno some-socket))
739 ;; Create anonymous credentials.
740 (let ((cred (make-anonymous-server-credentials))
741 (dh-params (make-dh-parameters 1024)))
742 ;; Note: DH parameter generation can take some time.
743 (set-anonymous-server-dh-parameters! cred dh-params)
744 (set-session-credentials! server cred))
746 ;; Perform the TLS handshake with the client.
749 ;; Receive data over the TLS record layer.
750 (let ((message (read (session-record-port server))))
751 (format #t "received the following message: ~a~%"
754 (bye server close-request/rdwr)))
761 <a name="OpenPGP-Authentication-Guile-Example"></a>
764 Next: <a href="#Importing-OpenPGP-Keys-Guile-Example" accesskey="n" rel="next">Importing OpenPGP Keys Guile Example</a>, Previous: <a href="#Anonymous-Authentication-Guile-Example" accesskey="p" rel="prev">Anonymous Authentication Guile Example</a>, Up: <a href="#Guile-Examples" accesskey="u" rel="up">Guile Examples</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
766 <a name="OpenPGP-Authentication-Guile-Example-1"></a>
767 <h3 class="section">4.2 OpenPGP Authentication Guile Example</h3>
769 <p>GnuTLS allows users to authenticate using OpenPGP certificates.
770 Using OpenPGP-based authentication is not more complicated than using
771 anonymous authentication. It requires a bit of extra work, though, to
772 import the OpenPGP public and private key of the client/server. Key
773 import is omitted here and is left as an exercise to the reader
774 (see <a href="#Importing-OpenPGP-Keys-Guile-Example">Importing OpenPGP Keys Guile Example</a>).
776 <p>Assuming <var>some-socket</var> is bound to an open socket port and
777 <var>pub</var> and <var>sec</var> are bound to the client’s OpenPGP public and
778 secret key, respectively, client-side code would look like this:
780 <a name="index-certificate_002dtype_002fopenpgp"></a>
782 <div class="example">
783 <pre class="example">;; Client-side.
785 (define %certs (list certificate-type/openpgp))
787 (let ((client (make-session connection-end/client))
788 (cred (make-certificate-credentials)))
789 (set-session-default-priority! client)
791 ;; Choose OpenPGP certificates.
792 (set-session-certificate-type-priority! client %certs)
794 ;; Prepare appropriate client credentials.
795 (set-certificate-credentials-openpgp-keys! cred pub sec)
796 (set-session-credentials! client cred)
798 ;; Specify the underlying transport socket.
799 (set-session-transport-fd! client (fileno some-socket))
802 (write "hello, world!" (session-record-port client))
803 (bye client close-request/rdwr))
806 <p>Similarly, server-side code would be along these lines:
808 <div class="example">
809 <pre class="example">;; Server-side.
811 (define %certs (list certificate-type/openpgp))
813 (let ((server (make-session connection-end/server))
814 (rsa (make-rsa-parameters 1024))
815 (dh (make-dh-parameters 1024)))
816 (set-session-default-priority! server)
818 ;; Choose OpenPGP certificates.
819 (set-session-certificate-type-priority! server %certs)
821 (let ((cred (make-certificate-credentials)))
822 ;; Prepare credentials with RSA and Diffie-Hellman parameters.
823 (set-certificate-credentials-dh-parameters! cred dh)
824 (set-certificate-credentials-rsa-export-parameters! cred rsa)
825 (set-certificate-credentials-openpgp-keys! cred pub sec)
826 (set-session-credentials! server cred))
828 (set-session-transport-fd! server (fileno some-socket))
831 (let ((msg (read (session-record-port server))))
832 (format #t "received: ~a~%" msg)
834 (bye server close-request/rdwr)))
837 <p>In practice, generating RSA parameters (and Diffie-Hellman parameters)
838 can time a long time. Thus, you may want to generate them once and
839 store them in a file for future re-use (see <a href="#Guile-Reference"><code>pkcs1-export-rsa-parameters</code> and <code>pkcs1-import-rsa-parameters</code></a>).
842 <a name="Importing-OpenPGP-Keys-Guile-Example"></a>
845 Previous: <a href="#OpenPGP-Authentication-Guile-Example" accesskey="p" rel="prev">OpenPGP Authentication Guile Example</a>, Up: <a href="#Guile-Examples" accesskey="u" rel="up">Guile Examples</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
847 <a name="Importing-OpenPGP-Keys-Guile-Example-1"></a>
848 <h3 class="section">4.3 Importing OpenPGP Keys Guile Example</h3>
850 <p>The following example provides a simple way of importing
851 “ASCII-armored” OpenPGP keys from files, using the
852 <code>import-openpgp-certificate</code> and <code>import-openpgp-private-key</code>
855 <a name="index-openpgp_002dcertificate_002dformat_002fbase64"></a>
856 <a name="index-openpgp_002dcertificate_002dformat_002fraw"></a>
858 <div class="example">
859 <pre class="example">(use-modules (srfi srfi-4)
862 (define (import-key-from-file import-proc file)
863 ;; Import OpenPGP key from FILE using IMPORT-PROC.
865 ;; Prepare a u8vector large enough to hold the raw
867 (let* ((size (stat:size (stat path)))
868 (raw (make-u8vector size)))
870 ;; Fill in the u8vector with the contents of FILE.
871 (uniform-vector-read! raw (open-input-file file))
873 ;; Pass the u8vector to the import procedure.
874 (import-proc raw openpgp-certificate-format/base64)))
877 (define (import-public-key-from-file file)
878 (import-key-from-file import-openpgp-certificate file))
880 (define (import-private-key-from-file file)
881 (import-key-from-file import-openpgp-private-key file))
884 <p>The procedures <code>import-public-key-from-file</code> and
885 <code>import-private-key-from-file</code> can be passed a file name. They
886 return an OpenPGP public key and private key object, respectively
887 (see <a href="#Guile-Reference">OpenPGP key objects</a>).
891 <a name="Guile-Reference"></a>
894 Next: <a href="#Copying-Information" accesskey="n" rel="next">Copying Information</a>, Previous: <a href="#Guile-Examples" accesskey="p" rel="prev">Guile Examples</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
896 <a name="Guile-Reference-1"></a>
897 <h2 class="chapter">5 Guile Reference</h2>
899 <p>This chapter lists the GnuTLS Scheme procedures exported by the
900 <code>(gnutls)</code> module (see <a href="http://www.gnu.org/software/guile/manual/guile.html#The-Guile-module-system">The Guile module system</a> in <cite>The
901 GNU Guile Reference Manual</cite>).
905 <dt><a name="index-set_002dlog_002dlevel_0021"></a>Scheme Procedure: <strong>set-log-level!</strong> <em>level</em></dt>
906 <dd><p>Enable GnuTLS logging up to <var>level</var> (an integer).
910 <dt><a name="index-set_002dlog_002dprocedure_0021"></a>Scheme Procedure: <strong>set-log-procedure!</strong> <em>proc</em></dt>
911 <dd><p>Use <var>proc</var> (a two-argument procedure) as the global GnuTLS log procedure.
915 <dt><a name="index-set_002dcertificate_002dcredentials_002dopenpgp_002dkeys_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-openpgp-keys!</strong> <em>cred pub sec</em></dt>
916 <dd><p>Use certificate <var>pub</var> and secret key <var>sec</var> in certificate credentials <var>cred</var>.
920 <dt><a name="index-openpgp_002dkeyring_002dcontains_002dkey_002did_003f"></a>Scheme Procedure: <strong>openpgp-keyring-contains-key-id?</strong> <em>keyring id</em></dt>
921 <dd><p>Return <code>#f</code> if key ID <var>id</var> is in <var>keyring</var>, <code>#f</code> otherwise.
925 <dt><a name="index-import_002dopenpgp_002dkeyring"></a>Scheme Procedure: <strong>import-openpgp-keyring</strong> <em>data format</em></dt>
926 <dd><p>Import <var>data</var> (a u8vector) according to <var>format</var> and return the imported keyring.
930 <dt><a name="index-openpgp_002dcertificate_002dusage"></a>Scheme Procedure: <strong>openpgp-certificate-usage</strong> <em>key</em></dt>
931 <dd><p>Return a list of values denoting the key usage of <var>key</var>.
935 <dt><a name="index-openpgp_002dcertificate_002dversion"></a>Scheme Procedure: <strong>openpgp-certificate-version</strong> <em>key</em></dt>
936 <dd><p>Return the version of the OpenPGP message format (RFC2440) honored by <var>key</var>.
940 <dt><a name="index-openpgp_002dcertificate_002dalgorithm"></a>Scheme Procedure: <strong>openpgp-certificate-algorithm</strong> <em>key</em></dt>
941 <dd><p>Return two values: the certificate algorithm used by <var>key</var> and the number of bits used.
945 <dt><a name="index-openpgp_002dcertificate_002dnames"></a>Scheme Procedure: <strong>openpgp-certificate-names</strong> <em>key</em></dt>
946 <dd><p>Return the list of names for <var>key</var>.
950 <dt><a name="index-openpgp_002dcertificate_002dname"></a>Scheme Procedure: <strong>openpgp-certificate-name</strong> <em>key index</em></dt>
951 <dd><p>Return the <var>index</var>th name of <var>key</var>.
955 <dt><a name="index-openpgp_002dcertificate_002dfingerprint"></a>Scheme Procedure: <strong>openpgp-certificate-fingerprint</strong> <em>key</em></dt>
956 <dd><p>Return a new u8vector denoting the fingerprint of <var>key</var>.
960 <dt><a name="index-openpgp_002dcertificate_002dfingerprint_0021"></a>Scheme Procedure: <strong>openpgp-certificate-fingerprint!</strong> <em>key fpr</em></dt>
961 <dd><p>Store in <var>fpr</var> (a u8vector) the fingerprint of <var>key</var>. Return the number of bytes stored in <var>fpr</var>.
965 <dt><a name="index-openpgp_002dcertificate_002did_0021"></a>Scheme Procedure: <strong>openpgp-certificate-id!</strong> <em>key id</em></dt>
966 <dd><p>Store the ID (an 8 byte sequence) of certificate <var>key</var> in <var>id</var> (a u8vector).
970 <dt><a name="index-openpgp_002dcertificate_002did"></a>Scheme Procedure: <strong>openpgp-certificate-id</strong> <em>key</em></dt>
971 <dd><p>Return the ID (an 8-element u8vector) of certificate <var>key</var>.
975 <dt><a name="index-import_002dopenpgp_002dprivate_002dkey"></a>Scheme Procedure: <strong>import-openpgp-private-key</strong> <em>data format [pass]</em></dt>
976 <dd><p>Return a new OpenPGP private key object resulting from the import of <var>data</var> (a uniform array) according to <var>format</var>. Optionally, a passphrase may be provided.
980 <dt><a name="index-import_002dopenpgp_002dcertificate"></a>Scheme Procedure: <strong>import-openpgp-certificate</strong> <em>data format</em></dt>
981 <dd><p>Return a new OpenPGP certificate object resulting from the import of <var>data</var> (a uniform array) according to <var>format</var>.
985 <dt><a name="index-x509_002dcertificate_002dsubject_002dalternative_002dname"></a>Scheme Procedure: <strong>x509-certificate-subject-alternative-name</strong> <em>cert index</em></dt>
986 <dd><p>Return two values: the alternative name type for <var>cert</var> (i.e., one of the <code>x509-subject-alternative-name/</code> values) and the actual subject alternative name (a string) at <var>index</var>. Both values are <code>#f</code> if no alternative name is available at <var>index</var>.
990 <dt><a name="index-x509_002dcertificate_002dsubject_002dkey_002did"></a>Scheme Procedure: <strong>x509-certificate-subject-key-id</strong> <em>cert</em></dt>
991 <dd><p>Return the subject key ID (a u8vector) for <var>cert</var>.
995 <dt><a name="index-x509_002dcertificate_002dauthority_002dkey_002did"></a>Scheme Procedure: <strong>x509-certificate-authority-key-id</strong> <em>cert</em></dt>
996 <dd><p>Return the key ID (a u8vector) of the X.509 certificate authority of <var>cert</var>.
1000 <dt><a name="index-x509_002dcertificate_002dkey_002did"></a>Scheme Procedure: <strong>x509-certificate-key-id</strong> <em>cert</em></dt>
1001 <dd><p>Return a statistically unique ID (a u8vector) for <var>cert</var> that depends on its public key parameters. This is normally a 20-byte SHA-1 hash.
1005 <dt><a name="index-x509_002dcertificate_002dversion"></a>Scheme Procedure: <strong>x509-certificate-version</strong> <em>cert</em></dt>
1006 <dd><p>Return the version of <var>cert</var>.
1010 <dt><a name="index-x509_002dcertificate_002dkey_002dusage"></a>Scheme Procedure: <strong>x509-certificate-key-usage</strong> <em>cert</em></dt>
1011 <dd><p>Return the key usage of <var>cert</var> (i.e., a list of <code>key-usage/</code> values), or the empty list if <var>cert</var> does not contain such information.
1015 <dt><a name="index-x509_002dcertificate_002dpublic_002dkey_002dalgorithm"></a>Scheme Procedure: <strong>x509-certificate-public-key-algorithm</strong> <em>cert</em></dt>
1016 <dd><p>Return two values: the public key algorithm (i.e., one of the <code>pk-algorithm/</code> values) of <var>cert</var> and the number of bits used.
1020 <dt><a name="index-x509_002dcertificate_002dsignature_002dalgorithm"></a>Scheme Procedure: <strong>x509-certificate-signature-algorithm</strong> <em>cert</em></dt>
1021 <dd><p>Return the signature algorithm used by <var>cert</var> (i.e., one of the <code>sign-algorithm/</code> values).
1025 <dt><a name="index-x509_002dcertificate_002dmatches_002dhostname_003f"></a>Scheme Procedure: <strong>x509-certificate-matches-hostname?</strong> <em>cert hostname</em></dt>
1026 <dd><p>Return true if <var>cert</var> matches <var>hostname</var>, a string denoting a DNS host name. This is the basic implementation of <a href="http://tools.ietf.org/html/rfc2818">RFC 2818</a> (aka. HTTPS).
1030 <dt><a name="index-x509_002dcertificate_002dissuer_002ddn_002doid"></a>Scheme Procedure: <strong>x509-certificate-issuer-dn-oid</strong> <em>cert index</em></dt>
1031 <dd><p>Return the OID (a string) at <var>index</var> from <var>cert</var>’s issuer DN. Return <code>#f</code> if no OID is available at <var>index</var>.
1035 <dt><a name="index-x509_002dcertificate_002ddn_002doid"></a>Scheme Procedure: <strong>x509-certificate-dn-oid</strong> <em>cert index</em></dt>
1036 <dd><p>Return OID (a string) at <var>index</var> from <var>cert</var>. Return <code>#f</code> if no OID is available at <var>index</var>.
1040 <dt><a name="index-x509_002dcertificate_002dissuer_002ddn"></a>Scheme Procedure: <strong>x509-certificate-issuer-dn</strong> <em>cert</em></dt>
1041 <dd><p>Return the distinguished name (DN) of X.509 certificate <var>cert</var>.
1045 <dt><a name="index-x509_002dcertificate_002ddn"></a>Scheme Procedure: <strong>x509-certificate-dn</strong> <em>cert</em></dt>
1046 <dd><p>Return the distinguished name (DN) of X.509 certificate <var>cert</var>. The form of the DN is as described in <a href="http://tools.ietf.org/html/rfc2253">RFC 2253</a>.
1050 <dt><a name="index-pkcs8_002dimport_002dx509_002dprivate_002dkey"></a>Scheme Procedure: <strong>pkcs8-import-x509-private-key</strong> <em>data format [pass [encrypted]]</em></dt>
1051 <dd><p>Return a new X.509 private key object resulting from the import of <var>data</var> (a uniform array) according to <var>format</var>. Optionally, if <var>pass</var> is not <code>#f</code>, it should be a string denoting a passphrase. <var>encrypted</var> tells whether the private key is encrypted (<code>#t</code> by default).
1055 <dt><a name="index-import_002dx509_002dprivate_002dkey"></a>Scheme Procedure: <strong>import-x509-private-key</strong> <em>data format</em></dt>
1056 <dd><p>Return a new X.509 private key object resulting from the import of <var>data</var> (a uniform array) according to <var>format</var>.
1060 <dt><a name="index-import_002dx509_002dcertificate"></a>Scheme Procedure: <strong>import-x509-certificate</strong> <em>data format</em></dt>
1061 <dd><p>Return a new X.509 certificate object resulting from the import of <var>data</var> (a uniform array) according to <var>format</var>.
1065 <dt><a name="index-server_002dsession_002dpsk_002dusername"></a>Scheme Procedure: <strong>server-session-psk-username</strong> <em>session</em></dt>
1066 <dd><p>Return the username associated with PSK server session <var>session</var>.
1070 <dt><a name="index-set_002dpsk_002dclient_002dcredentials_0021"></a>Scheme Procedure: <strong>set-psk-client-credentials!</strong> <em>cred username key key-format</em></dt>
1071 <dd><p>Set the client credentials for <var>cred</var>, a PSK client credentials object.
1075 <dt><a name="index-make_002dpsk_002dclient_002dcredentials"></a>Scheme Procedure: <strong>make-psk-client-credentials</strong></dt>
1076 <dd><p>Return a new PSK client credentials object.
1080 <dt><a name="index-set_002dpsk_002dserver_002dcredentials_002dfile_0021"></a>Scheme Procedure: <strong>set-psk-server-credentials-file!</strong> <em>cred file</em></dt>
1081 <dd><p>Use <var>file</var> as the password file for PSK server credentials <var>cred</var>.
1085 <dt><a name="index-make_002dpsk_002dserver_002dcredentials"></a>Scheme Procedure: <strong>make-psk-server-credentials</strong></dt>
1086 <dd><p>Return new PSK server credentials.
1090 <dt><a name="index-peer_002dcertificate_002dstatus"></a>Scheme Procedure: <strong>peer-certificate-status</strong> <em>session</em></dt>
1091 <dd><p>Verify the peer certificate for <var>session</var> and return a list of <code>certificate-status</code> values (such as <code>certificate-status/revoked</code>), or the empty list if the certificate is valid.
1095 <dt><a name="index-set_002dcertificate_002dcredentials_002dverify_002dflags_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-verify-flags!</strong> <em>cred [flags...]</em></dt>
1096 <dd><p>Set the certificate verification flags to <var>flags</var>, a series of <code>certificate-verify</code> values.
1100 <dt><a name="index-set_002dcertificate_002dcredentials_002dverify_002dlimits_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-verify-limits!</strong> <em>cred max-bits max-depth</em></dt>
1101 <dd><p>Set the verification limits of <code>peer-certificate-status</code> for certificate credentials <var>cred</var> to <var>max_bits</var> bits for an acceptable certificate and <var>max_depth</var> as the maximum depth of a certificate chain.
1105 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dkeys_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-keys!</strong> <em>cred certs privkey</em></dt>
1106 <dd><p>Have certificate credentials <var>cred</var> use the X.509 certificates listed in <var>certs</var> and X.509 private key <var>privkey</var>.
1110 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dkey_002ddata_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-key-data!</strong> <em>cred cert key format</em></dt>
1111 <dd><p>Use X.509 certificate <var>cert</var> and private key <var>key</var>, both uniform arrays containing the X.509 certificate and key in format <var>format</var>, for certificate credentials <var>cred</var>.
1115 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dcrl_002ddata_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-crl-data!</strong> <em>cred data format</em></dt>
1116 <dd><p>Use <var>data</var> (a uniform array) as the X.509 CRL (certificate revocation list) database for <var>cred</var>. On success, return the number of CRLs processed.
1120 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dtrust_002ddata_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-trust-data!</strong> <em>cred data format</em></dt>
1121 <dd><p>Use <var>data</var> (a uniform array) as the X.509 trust database for <var>cred</var>. On success, return the number of certificates processed.
1125 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dcrl_002dfile_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-crl-file!</strong> <em>cred file format</em></dt>
1126 <dd><p>Use <var>file</var> as the X.509 CRL (certificate revocation list) file for certificate credentials <var>cred</var>. On success, return the number of CRLs processed.
1130 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dtrust_002dfile_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-trust-file!</strong> <em>cred file format</em></dt>
1131 <dd><p>Use <var>file</var> as the X.509 trust file for certificate credentials <var>cred</var>. On success, return the number of certificates processed.
1135 <dt><a name="index-set_002dcertificate_002dcredentials_002dx509_002dkey_002dfiles_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-x509-key-files!</strong> <em>cred cert-file key-file format</em></dt>
1136 <dd><p>Use <var>file</var> as the password file for PSK server credentials <var>cred</var>.
1140 <dt><a name="index-set_002dcertificate_002dcredentials_002drsa_002dexport_002dparameters_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-rsa-export-parameters!</strong> <em>cred rsa-params</em></dt>
1141 <dd><p>Use RSA parameters <var>rsa_params</var> for certificate credentials <var>cred</var>.
1145 <dt><a name="index-set_002dcertificate_002dcredentials_002ddh_002dparameters_0021"></a>Scheme Procedure: <strong>set-certificate-credentials-dh-parameters!</strong> <em>cred dh-params</em></dt>
1146 <dd><p>Use Diffie-Hellman parameters <var>dh_params</var> for certificate credentials <var>cred</var>.
1150 <dt><a name="index-make_002dcertificate_002dcredentials"></a>Scheme Procedure: <strong>make-certificate-credentials</strong></dt>
1151 <dd><p>Return new certificate credentials (i.e., for use with either X.509 or OpenPGP certificates.
1155 <dt><a name="index-pkcs1_002dexport_002drsa_002dparameters-1"></a>Scheme Procedure: <strong>pkcs1-export-rsa-parameters</strong> <em>rsa-params format</em></dt>
1156 <dd><p>Export Diffie-Hellman parameters <var>rsa_params</var> in PKCS1 format according for <var>format</var> (an <code>x509-certificate-format</code> value). Return a <code>u8vector</code> containing the result.
1160 <dt><a name="index-pkcs1_002dimport_002drsa_002dparameters"></a>Scheme Procedure: <strong>pkcs1-import-rsa-parameters</strong> <em>array format</em></dt>
1161 <dd><p>Import Diffie-Hellman parameters in PKCS1 format (further specified by <var>format</var>, an <code>x509-certificate-format</code> value) from <var>array</var> (a homogeneous array) and return a new <code>rsa-params</code> object.
1165 <dt><a name="index-make_002drsa_002dparameters-1"></a>Scheme Procedure: <strong>make-rsa-parameters</strong> <em>bits</em></dt>
1166 <dd><p>Return new RSA parameters.
1170 <dt><a name="index-set_002danonymous_002dserver_002ddh_002dparameters_0021"></a>Scheme Procedure: <strong>set-anonymous-server-dh-parameters!</strong> <em>cred dh-params</em></dt>
1171 <dd><p>Set the Diffie-Hellman parameters of anonymous server credentials <var>cred</var>.
1175 <dt><a name="index-make_002danonymous_002dclient_002dcredentials"></a>Scheme Procedure: <strong>make-anonymous-client-credentials</strong></dt>
1176 <dd><p>Return anonymous client credentials.
1180 <dt><a name="index-make_002danonymous_002dserver_002dcredentials"></a>Scheme Procedure: <strong>make-anonymous-server-credentials</strong></dt>
1181 <dd><p>Return anonymous server credentials.
1185 <dt><a name="index-set_002dsession_002ddh_002dprime_002dbits_0021"></a>Scheme Procedure: <strong>set-session-dh-prime-bits!</strong> <em>session bits</em></dt>
1186 <dd><p>Use <var>bits</var> DH prime bits for <var>session</var>.
1190 <dt><a name="index-pkcs3_002dexport_002ddh_002dparameters"></a>Scheme Procedure: <strong>pkcs3-export-dh-parameters</strong> <em>dh-params format</em></dt>
1191 <dd><p>Export Diffie-Hellman parameters <var>dh_params</var> in PKCS3 format according for <var>format</var> (an <code>x509-certificate-format</code> value). Return a <code>u8vector</code> containing the result.
1195 <dt><a name="index-pkcs3_002dimport_002ddh_002dparameters"></a>Scheme Procedure: <strong>pkcs3-import-dh-parameters</strong> <em>array format</em></dt>
1196 <dd><p>Import Diffie-Hellman parameters in PKCS3 format (further specified by <var>format</var>, an <code>x509-certificate-format</code> value) from <var>array</var> (a homogeneous array) and return a new <code>dh-params</code> object.
1200 <dt><a name="index-make_002ddh_002dparameters"></a>Scheme Procedure: <strong>make-dh-parameters</strong> <em>bits</em></dt>
1201 <dd><p>Return new Diffie-Hellman parameters.
1205 <dt><a name="index-set_002dsession_002dtransport_002dport_0021-1"></a>Scheme Procedure: <strong>set-session-transport-port!</strong> <em>session port</em></dt>
1206 <dd><p>Use <var>port</var> as the input/output port for <var>session</var>.
1210 <dt><a name="index-set_002dsession_002dtransport_002dfd_0021-1"></a>Scheme Procedure: <strong>set-session-transport-fd!</strong> <em>session fd</em></dt>
1211 <dd><p>Use file descriptor <var>fd</var> as the underlying transport for <var>session</var>.
1215 <dt><a name="index-session_002drecord_002dport-1"></a>Scheme Procedure: <strong>session-record-port</strong> <em>session</em></dt>
1216 <dd><p>Return a read-write port that may be used to communicate over <var>session</var>. All invocations of <code>session-port</code> on a given session return the same object (in the sense of <code>eq?</code>).
1220 <dt><a name="index-record_002dreceive_0021-1"></a>Scheme Procedure: <strong>record-receive!</strong> <em>session array</em></dt>
1221 <dd><p>Receive data from <var>session</var> into <var>array</var>, a uniform homogeneous array. Return the number of bytes actually received.
1225 <dt><a name="index-record_002dsend-1"></a>Scheme Procedure: <strong>record-send</strong> <em>session array</em></dt>
1226 <dd><p>Send the record constituted by <var>array</var> through <var>session</var>.
1230 <dt><a name="index-set_002dsession_002dserver_002dname_0021"></a>Scheme Procedure: <strong>set-session-server-name!</strong> <em>session type name</em></dt>
1231 <dd><p>For a client, this procedure provides a way to inform the server that it is known under <var>name</var>, <i>via</i> the <code>SERVER NAME</code> TLS extension. <var>type</var> must be a <code>server-name-type</code> value, <var>server-name-type/dns</var> for DNS names.
1235 <dt><a name="index-set_002dsession_002dcredentials_0021"></a>Scheme Procedure: <strong>set-session-credentials!</strong> <em>session cred</em></dt>
1236 <dd><p>Use <var>cred</var> as <var>session</var>’s credentials.
1240 <dt><a name="index-cipher_002dsuite_002d_003estring"></a>Scheme Procedure: <strong>cipher-suite->string</strong> <em>kx cipher mac</em></dt>
1241 <dd><p>Return the name of the given cipher suite.
1245 <dt><a name="index-set_002dsession_002dpriorities_0021"></a>Scheme Procedure: <strong>set-session-priorities!</strong> <em>session priorities</em></dt>
1246 <dd><p>Have <var>session</var> use the given <var>priorities</var> for the ciphers, key exchange methods, MACs and compression methods. <var>priorities</var> must be a string (see <a href="http://www.gnu.org/software/gnutls/manual/gnutls.html#Priority-Strings">Priority Strings</a> in <cite>GnuTLS, Transport Layer Security Library for the GNU system</cite>). When <var>priorities</var> cannot be parsed, an <code>error/invalid-request</code> error is raised, with an extra argument indication the position of the error.
1251 <dt><a name="index-set_002dsession_002ddefault_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-default-priority!</strong> <em>session</em></dt>
1252 <dd><p>Have <var>session</var> use the default priorities.
1256 <dt><a name="index-set_002dserver_002dsession_002dcertificate_002drequest_0021"></a>Scheme Procedure: <strong>set-server-session-certificate-request!</strong> <em>session request</em></dt>
1257 <dd><p>Tell how <var>session</var>, a server-side session, should deal with certificate requests. <var>request</var> should be either <code>certificate-request/request</code> or <code>certificate-request/require</code>.
1261 <dt><a name="index-session_002dour_002dcertificate_002dchain"></a>Scheme Procedure: <strong>session-our-certificate-chain</strong> <em>session</em></dt>
1262 <dd><p>Return our certificate chain for <var>session</var> (as sent to the peer) in raw format (a u8vector). In the case of OpenPGP there is exactly one certificate. Return the empty list if no certificate was used.
1266 <dt><a name="index-session_002dpeer_002dcertificate_002dchain"></a>Scheme Procedure: <strong>session-peer-certificate-chain</strong> <em>session</em></dt>
1267 <dd><p>Return the a list of certificates in raw format (u8vectors) where the first one is the peer’s certificate. In the case of OpenPGP, there is always exactly one certificate. In the case of X.509, subsequent certificates indicate form a certificate chain. Return the empty list if no certificate was sent.
1271 <dt><a name="index-session_002dclient_002dauthentication_002dtype"></a>Scheme Procedure: <strong>session-client-authentication-type</strong> <em>session</em></dt>
1272 <dd><p>Return the client authentication type (a <code>credential-type</code> value) used in <var>session</var>.
1276 <dt><a name="index-session_002dserver_002dauthentication_002dtype"></a>Scheme Procedure: <strong>session-server-authentication-type</strong> <em>session</em></dt>
1277 <dd><p>Return the server authentication type (a <code>credential-type</code> value) used in <var>session</var>.
1281 <dt><a name="index-session_002dauthentication_002dtype"></a>Scheme Procedure: <strong>session-authentication-type</strong> <em>session</em></dt>
1282 <dd><p>Return the authentication type (a <code>credential-type</code> value) used by <var>session</var>.
1286 <dt><a name="index-session_002dprotocol"></a>Scheme Procedure: <strong>session-protocol</strong> <em>session</em></dt>
1287 <dd><p>Return the protocol used by <var>session</var>.
1291 <dt><a name="index-session_002dcertificate_002dtype"></a>Scheme Procedure: <strong>session-certificate-type</strong> <em>session</em></dt>
1292 <dd><p>Return <var>session</var>’s certificate type.
1296 <dt><a name="index-session_002dcompression_002dmethod"></a>Scheme Procedure: <strong>session-compression-method</strong> <em>session</em></dt>
1297 <dd><p>Return <var>session</var>’s compression method.
1301 <dt><a name="index-session_002dmac"></a>Scheme Procedure: <strong>session-mac</strong> <em>session</em></dt>
1302 <dd><p>Return <var>session</var>’s MAC.
1306 <dt><a name="index-session_002dkx"></a>Scheme Procedure: <strong>session-kx</strong> <em>session</em></dt>
1307 <dd><p>Return <var>session</var>’s kx.
1311 <dt><a name="index-session_002dcipher-1"></a>Scheme Procedure: <strong>session-cipher</strong> <em>session</em></dt>
1312 <dd><p>Return <var>session</var>’s cipher.
1316 <dt><a name="index-alert_002dsend"></a>Scheme Procedure: <strong>alert-send</strong> <em>session level alert</em></dt>
1317 <dd><p>Send <var>alert</var> via <var>session</var>.
1321 <dt><a name="index-alert_002dget"></a>Scheme Procedure: <strong>alert-get</strong> <em>session</em></dt>
1322 <dd><p>Get an aleter from <var>session</var>.
1326 <dt><a name="index-rehandshake"></a>Scheme Procedure: <strong>rehandshake</strong> <em>session</em></dt>
1327 <dd><p>Perform a re-handshaking for <var>session</var>.
1331 <dt><a name="index-handshake"></a>Scheme Procedure: <strong>handshake</strong> <em>session</em></dt>
1332 <dd><p>Perform a handshake for <var>session</var>.
1336 <dt><a name="index-bye"></a>Scheme Procedure: <strong>bye</strong> <em>session how</em></dt>
1337 <dd><p>Close <var>session</var> according to <var>how</var>.
1341 <dt><a name="index-make_002dsession"></a>Scheme Procedure: <strong>make-session</strong> <em>end</em></dt>
1342 <dd><p>Return a new session for connection end <var>end</var>, either <code>connection-end/server</code> or <code>connection-end/client</code>.
1346 <dt><a name="index-gnutls_002dversion"></a>Scheme Procedure: <strong>gnutls-version</strong></dt>
1347 <dd><p>Return a string denoting the version number of the underlying GnuTLS library, e.g., <code>"1.7.2"</code>.
1351 <dt><a name="index-openpgp_002dkeyring_003f"></a>Scheme Procedure: <strong>openpgp-keyring?</strong> <em>obj</em></dt>
1352 <dd><p>Return true if <var>obj</var> is of type <code>openpgp-keyring</code>.
1356 <dt><a name="index-openpgp_002dprivate_002dkey_003f"></a>Scheme Procedure: <strong>openpgp-private-key?</strong> <em>obj</em></dt>
1357 <dd><p>Return true if <var>obj</var> is of type <code>openpgp-private-key</code>.
1361 <dt><a name="index-openpgp_002dcertificate_003f"></a>Scheme Procedure: <strong>openpgp-certificate?</strong> <em>obj</em></dt>
1362 <dd><p>Return true if <var>obj</var> is of type <code>openpgp-certificate</code>.
1366 <dt><a name="index-x509_002dprivate_002dkey_003f"></a>Scheme Procedure: <strong>x509-private-key?</strong> <em>obj</em></dt>
1367 <dd><p>Return true if <var>obj</var> is of type <code>x509-private-key</code>.
1371 <dt><a name="index-x509_002dcertificate_003f"></a>Scheme Procedure: <strong>x509-certificate?</strong> <em>obj</em></dt>
1372 <dd><p>Return true if <var>obj</var> is of type <code>x509-certificate</code>.
1376 <dt><a name="index-psk_002dclient_002dcredentials_003f"></a>Scheme Procedure: <strong>psk-client-credentials?</strong> <em>obj</em></dt>
1377 <dd><p>Return true if <var>obj</var> is of type <code>psk-client-credentials</code>.
1381 <dt><a name="index-psk_002dserver_002dcredentials_003f"></a>Scheme Procedure: <strong>psk-server-credentials?</strong> <em>obj</em></dt>
1382 <dd><p>Return true if <var>obj</var> is of type <code>psk-server-credentials</code>.
1386 <dt><a name="index-srp_002dclient_002dcredentials_003f"></a>Scheme Procedure: <strong>srp-client-credentials?</strong> <em>obj</em></dt>
1387 <dd><p>Return true if <var>obj</var> is of type <code>srp-client-credentials</code>.
1391 <dt><a name="index-srp_002dserver_002dcredentials_003f"></a>Scheme Procedure: <strong>srp-server-credentials?</strong> <em>obj</em></dt>
1392 <dd><p>Return true if <var>obj</var> is of type <code>srp-server-credentials</code>.
1396 <dt><a name="index-certificate_002dcredentials_003f"></a>Scheme Procedure: <strong>certificate-credentials?</strong> <em>obj</em></dt>
1397 <dd><p>Return true if <var>obj</var> is of type <code>certificate-credentials</code>.
1401 <dt><a name="index-rsa_002dparameters_003f"></a>Scheme Procedure: <strong>rsa-parameters?</strong> <em>obj</em></dt>
1402 <dd><p>Return true if <var>obj</var> is of type <code>rsa-parameters</code>.
1406 <dt><a name="index-dh_002dparameters_003f"></a>Scheme Procedure: <strong>dh-parameters?</strong> <em>obj</em></dt>
1407 <dd><p>Return true if <var>obj</var> is of type <code>dh-parameters</code>.
1411 <dt><a name="index-anonymous_002dserver_002dcredentials_003f"></a>Scheme Procedure: <strong>anonymous-server-credentials?</strong> <em>obj</em></dt>
1412 <dd><p>Return true if <var>obj</var> is of type <code>anonymous-server-credentials</code>.
1416 <dt><a name="index-anonymous_002dclient_002dcredentials_003f"></a>Scheme Procedure: <strong>anonymous-client-credentials?</strong> <em>obj</em></dt>
1417 <dd><p>Return true if <var>obj</var> is of type <code>anonymous-client-credentials</code>.
1421 <dt><a name="index-session_003f"></a>Scheme Procedure: <strong>session?</strong> <em>obj</em></dt>
1422 <dd><p>Return true if <var>obj</var> is of type <code>session</code>.
1426 <dt><a name="index-openpgp_002dcertificate_002dformat_002d_003estring"></a>Scheme Procedure: <strong>openpgp-certificate-format->string</strong> <em>enumval</em></dt>
1427 <dd><p>Return a string describing <var>enumval</var>, a <code>openpgp-certificate-format</code> value.
1431 <dt><a name="index-error_002d_003estring-1"></a>Scheme Procedure: <strong>error->string</strong> <em>enumval</em></dt>
1432 <dd><p>Return a string describing <var>enumval</var>, a <code>error</code> value.
1436 <dt><a name="index-certificate_002dverify_002d_003estring"></a>Scheme Procedure: <strong>certificate-verify->string</strong> <em>enumval</em></dt>
1437 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-verify</code> value.
1441 <dt><a name="index-key_002dusage_002d_003estring"></a>Scheme Procedure: <strong>key-usage->string</strong> <em>enumval</em></dt>
1442 <dd><p>Return a string describing <var>enumval</var>, a <code>key-usage</code> value.
1446 <dt><a name="index-psk_002dkey_002dformat_002d_003estring"></a>Scheme Procedure: <strong>psk-key-format->string</strong> <em>enumval</em></dt>
1447 <dd><p>Return a string describing <var>enumval</var>, a <code>psk-key-format</code> value.
1451 <dt><a name="index-server_002dname_002dtype_002d_003estring"></a>Scheme Procedure: <strong>server-name-type->string</strong> <em>enumval</em></dt>
1452 <dd><p>Return a string describing <var>enumval</var>, a <code>server-name-type</code> value.
1456 <dt><a name="index-sign_002dalgorithm_002d_003estring"></a>Scheme Procedure: <strong>sign-algorithm->string</strong> <em>enumval</em></dt>
1457 <dd><p>Return a string describing <var>enumval</var>, a <code>sign-algorithm</code> value.
1461 <dt><a name="index-pk_002dalgorithm_002d_003estring"></a>Scheme Procedure: <strong>pk-algorithm->string</strong> <em>enumval</em></dt>
1462 <dd><p>Return a string describing <var>enumval</var>, a <code>pk-algorithm</code> value.
1466 <dt><a name="index-x509_002dsubject_002dalternative_002dname_002d_003estring"></a>Scheme Procedure: <strong>x509-subject-alternative-name->string</strong> <em>enumval</em></dt>
1467 <dd><p>Return a string describing <var>enumval</var>, a <code>x509-subject-alternative-name</code> value.
1471 <dt><a name="index-x509_002dcertificate_002dformat_002d_003estring"></a>Scheme Procedure: <strong>x509-certificate-format->string</strong> <em>enumval</em></dt>
1472 <dd><p>Return a string describing <var>enumval</var>, a <code>x509-certificate-format</code> value.
1476 <dt><a name="index-certificate_002dtype_002d_003estring"></a>Scheme Procedure: <strong>certificate-type->string</strong> <em>enumval</em></dt>
1477 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-type</code> value.
1481 <dt><a name="index-protocol_002d_003estring"></a>Scheme Procedure: <strong>protocol->string</strong> <em>enumval</em></dt>
1482 <dd><p>Return a string describing <var>enumval</var>, a <code>protocol</code> value.
1486 <dt><a name="index-close_002drequest_002d_003estring"></a>Scheme Procedure: <strong>close-request->string</strong> <em>enumval</em></dt>
1487 <dd><p>Return a string describing <var>enumval</var>, a <code>close-request</code> value.
1491 <dt><a name="index-certificate_002drequest_002d_003estring"></a>Scheme Procedure: <strong>certificate-request->string</strong> <em>enumval</em></dt>
1492 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-request</code> value.
1496 <dt><a name="index-certificate_002dstatus_002d_003estring"></a>Scheme Procedure: <strong>certificate-status->string</strong> <em>enumval</em></dt>
1497 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-status</code> value.
1501 <dt><a name="index-handshake_002ddescription_002d_003estring"></a>Scheme Procedure: <strong>handshake-description->string</strong> <em>enumval</em></dt>
1502 <dd><p>Return a string describing <var>enumval</var>, a <code>handshake-description</code> value.
1506 <dt><a name="index-alert_002ddescription_002d_003estring"></a>Scheme Procedure: <strong>alert-description->string</strong> <em>enumval</em></dt>
1507 <dd><p>Return a string describing <var>enumval</var>, a <code>alert-description</code> value.
1511 <dt><a name="index-alert_002dlevel_002d_003estring"></a>Scheme Procedure: <strong>alert-level->string</strong> <em>enumval</em></dt>
1512 <dd><p>Return a string describing <var>enumval</var>, a <code>alert-level</code> value.
1516 <dt><a name="index-connection_002dend_002d_003estring"></a>Scheme Procedure: <strong>connection-end->string</strong> <em>enumval</em></dt>
1517 <dd><p>Return a string describing <var>enumval</var>, a <code>connection-end</code> value.
1521 <dt><a name="index-compression_002dmethod_002d_003estring"></a>Scheme Procedure: <strong>compression-method->string</strong> <em>enumval</em></dt>
1522 <dd><p>Return a string describing <var>enumval</var>, a <code>compression-method</code> value.
1526 <dt><a name="index-digest_002d_003estring"></a>Scheme Procedure: <strong>digest->string</strong> <em>enumval</em></dt>
1527 <dd><p>Return a string describing <var>enumval</var>, a <code>digest</code> value.
1531 <dt><a name="index-mac_002d_003estring"></a>Scheme Procedure: <strong>mac->string</strong> <em>enumval</em></dt>
1532 <dd><p>Return a string describing <var>enumval</var>, a <code>mac</code> value.
1536 <dt><a name="index-credentials_002d_003estring"></a>Scheme Procedure: <strong>credentials->string</strong> <em>enumval</em></dt>
1537 <dd><p>Return a string describing <var>enumval</var>, a <code>credentials</code> value.
1541 <dt><a name="index-params_002d_003estring"></a>Scheme Procedure: <strong>params->string</strong> <em>enumval</em></dt>
1542 <dd><p>Return a string describing <var>enumval</var>, a <code>params</code> value.
1546 <dt><a name="index-kx_002d_003estring"></a>Scheme Procedure: <strong>kx->string</strong> <em>enumval</em></dt>
1547 <dd><p>Return a string describing <var>enumval</var>, a <code>kx</code> value.
1551 <dt><a name="index-cipher_002d_003estring"></a>Scheme Procedure: <strong>cipher->string</strong> <em>enumval</em></dt>
1552 <dd><p>Return a string describing <var>enumval</var>, a <code>cipher</code> value.
1557 <a name="Copying-Information"></a>
1558 <div class="header">
1560 Next: <a href="#Procedure-Index" accesskey="n" rel="next">Procedure Index</a>, Previous: <a href="#Guile-Reference" accesskey="p" rel="prev">Guile Reference</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
1562 <a name="Copying-Information-1"></a>
1563 <h2 class="appendix">Appendix A Copying Information</h2>
1564 <a name="index-FDL_002c-GNU-Free-Documentation-License"></a>
1566 <a name="GNU-Free-Documentation-License"></a>
1567 <h3 class="heading">GNU Free Documentation License</h3>
1569 <div align="center">Version 1.3, 3 November 2008
1572 <div class="display">
1573 <pre class="display">Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
1574 <a href="http://fsf.org/">http://fsf.org/</a>
1576 Everyone is permitted to copy and distribute verbatim copies
1577 of this license document, but changing it is not allowed.
1583 <p>The purpose of this License is to make a manual, textbook, or other
1584 functional and useful document <em>free</em> in the sense of freedom: to
1585 assure everyone the effective freedom to copy and redistribute it,
1586 with or without modifying it, either commercially or noncommercially.
1587 Secondarily, this License preserves for the author and publisher a way
1588 to get credit for their work, while not being considered responsible
1589 for modifications made by others.
1591 <p>This License is a kind of “copyleft”, which means that derivative
1592 works of the document must themselves be free in the same sense. It
1593 complements the GNU General Public License, which is a copyleft
1594 license designed for free software.
1596 <p>We have designed this License in order to use it for manuals for free
1597 software, because free software needs free documentation: a free
1598 program should come with manuals providing the same freedoms that the
1599 software does. But this License is not limited to software manuals;
1600 it can be used for any textual work, regardless of subject matter or
1601 whether it is published as a printed book. We recommend this License
1602 principally for works whose purpose is instruction or reference.
1604 </li><li> APPLICABILITY AND DEFINITIONS
1606 <p>This License applies to any manual or other work, in any medium, that
1607 contains a notice placed by the copyright holder saying it can be
1608 distributed under the terms of this License. Such a notice grants a
1609 world-wide, royalty-free license, unlimited in duration, to use that
1610 work under the conditions stated herein. The “Document”, below,
1611 refers to any such manual or work. Any member of the public is a
1612 licensee, and is addressed as “you”. You accept the license if you
1613 copy, modify or distribute the work in a way requiring permission
1614 under copyright law.
1616 <p>A “Modified Version” of the Document means any work containing the
1617 Document or a portion of it, either copied verbatim, or with
1618 modifications and/or translated into another language.
1620 <p>A “Secondary Section” is a named appendix or a front-matter section
1621 of the Document that deals exclusively with the relationship of the
1622 publishers or authors of the Document to the Document’s overall
1623 subject (or to related matters) and contains nothing that could fall
1624 directly within that overall subject. (Thus, if the Document is in
1625 part a textbook of mathematics, a Secondary Section may not explain
1626 any mathematics.) The relationship could be a matter of historical
1627 connection with the subject or with related matters, or of legal,
1628 commercial, philosophical, ethical or political position regarding
1631 <p>The “Invariant Sections” are certain Secondary Sections whose titles
1632 are designated, as being those of Invariant Sections, in the notice
1633 that says that the Document is released under this License. If a
1634 section does not fit the above definition of Secondary then it is not
1635 allowed to be designated as Invariant. The Document may contain zero
1636 Invariant Sections. If the Document does not identify any Invariant
1637 Sections then there are none.
1639 <p>The “Cover Texts” are certain short passages of text that are listed,
1640 as Front-Cover Texts or Back-Cover Texts, in the notice that says that
1641 the Document is released under this License. A Front-Cover Text may
1642 be at most 5 words, and a Back-Cover Text may be at most 25 words.
1644 <p>A “Transparent” copy of the Document means a machine-readable copy,
1645 represented in a format whose specification is available to the
1646 general public, that is suitable for revising the document
1647 straightforwardly with generic text editors or (for images composed of
1648 pixels) generic paint programs or (for drawings) some widely available
1649 drawing editor, and that is suitable for input to text formatters or
1650 for automatic translation to a variety of formats suitable for input
1651 to text formatters. A copy made in an otherwise Transparent file
1652 format whose markup, or absence of markup, has been arranged to thwart
1653 or discourage subsequent modification by readers is not Transparent.
1654 An image format is not Transparent if used for any substantial amount
1655 of text. A copy that is not “Transparent” is called “Opaque”.
1657 <p>Examples of suitable formats for Transparent copies include plain
1658 ASCII without markup, Texinfo input format, LaTeX input
1659 format, SGML or XML using a publicly available
1660 DTD, and standard-conforming simple HTML,
1661 PostScript or PDF designed for human modification. Examples
1662 of transparent image formats include PNG, XCF and
1663 JPG. Opaque formats include proprietary formats that can be
1664 read and edited only by proprietary word processors, SGML or
1665 XML for which the DTD and/or processing tools are
1666 not generally available, and the machine-generated HTML,
1667 PostScript or PDF produced by some word processors for
1668 output purposes only.
1670 <p>The “Title Page” means, for a printed book, the title page itself,
1671 plus such following pages as are needed to hold, legibly, the material
1672 this License requires to appear in the title page. For works in
1673 formats which do not have any title page as such, “Title Page” means
1674 the text near the most prominent appearance of the work’s title,
1675 preceding the beginning of the body of the text.
1677 <p>The “publisher” means any person or entity that distributes copies
1678 of the Document to the public.
1680 <p>A section “Entitled XYZ” means a named subunit of the Document whose
1681 title either is precisely XYZ or contains XYZ in parentheses following
1682 text that translates XYZ in another language. (Here XYZ stands for a
1683 specific section name mentioned below, such as “Acknowledgements”,
1684 “Dedications”, “Endorsements”, or “History”.) To “Preserve the Title”
1685 of such a section when you modify the Document means that it remains a
1686 section “Entitled XYZ” according to this definition.
1688 <p>The Document may include Warranty Disclaimers next to the notice which
1689 states that this License applies to the Document. These Warranty
1690 Disclaimers are considered to be included by reference in this
1691 License, but only as regards disclaiming warranties: any other
1692 implication that these Warranty Disclaimers may have is void and has
1693 no effect on the meaning of this License.
1695 </li><li> VERBATIM COPYING
1697 <p>You may copy and distribute the Document in any medium, either
1698 commercially or noncommercially, provided that this License, the
1699 copyright notices, and the license notice saying this License applies
1700 to the Document are reproduced in all copies, and that you add no other
1701 conditions whatsoever to those of this License. You may not use
1702 technical measures to obstruct or control the reading or further
1703 copying of the copies you make or distribute. However, you may accept
1704 compensation in exchange for copies. If you distribute a large enough
1705 number of copies you must also follow the conditions in section 3.
1707 <p>You may also lend copies, under the same conditions stated above, and
1708 you may publicly display copies.
1710 </li><li> COPYING IN QUANTITY
1712 <p>If you publish printed copies (or copies in media that commonly have
1713 printed covers) of the Document, numbering more than 100, and the
1714 Document’s license notice requires Cover Texts, you must enclose the
1715 copies in covers that carry, clearly and legibly, all these Cover
1716 Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
1717 the back cover. Both covers must also clearly and legibly identify
1718 you as the publisher of these copies. The front cover must present
1719 the full title with all words of the title equally prominent and
1720 visible. You may add other material on the covers in addition.
1721 Copying with changes limited to the covers, as long as they preserve
1722 the title of the Document and satisfy these conditions, can be treated
1723 as verbatim copying in other respects.
1725 <p>If the required texts for either cover are too voluminous to fit
1726 legibly, you should put the first ones listed (as many as fit
1727 reasonably) on the actual cover, and continue the rest onto adjacent
1730 <p>If you publish or distribute Opaque copies of the Document numbering
1731 more than 100, you must either include a machine-readable Transparent
1732 copy along with each Opaque copy, or state in or with each Opaque copy
1733 a computer-network location from which the general network-using
1734 public has access to download using public-standard network protocols
1735 a complete Transparent copy of the Document, free of added material.
1736 If you use the latter option, you must take reasonably prudent steps,
1737 when you begin distribution of Opaque copies in quantity, to ensure
1738 that this Transparent copy will remain thus accessible at the stated
1739 location until at least one year after the last time you distribute an
1740 Opaque copy (directly or through your agents or retailers) of that
1741 edition to the public.
1743 <p>It is requested, but not required, that you contact the authors of the
1744 Document well before redistributing any large number of copies, to give
1745 them a chance to provide you with an updated version of the Document.
1747 </li><li> MODIFICATIONS
1749 <p>You may copy and distribute a Modified Version of the Document under
1750 the conditions of sections 2 and 3 above, provided that you release
1751 the Modified Version under precisely this License, with the Modified
1752 Version filling the role of the Document, thus licensing distribution
1753 and modification of the Modified Version to whoever possesses a copy
1754 of it. In addition, you must do these things in the Modified Version:
1757 <li> Use in the Title Page (and on the covers, if any) a title distinct
1758 from that of the Document, and from those of previous versions
1759 (which should, if there were any, be listed in the History section
1760 of the Document). You may use the same title as a previous version
1761 if the original publisher of that version gives permission.
1763 </li><li> List on the Title Page, as authors, one or more persons or entities
1764 responsible for authorship of the modifications in the Modified
1765 Version, together with at least five of the principal authors of the
1766 Document (all of its principal authors, if it has fewer than five),
1767 unless they release you from this requirement.
1769 </li><li> State on the Title page the name of the publisher of the
1770 Modified Version, as the publisher.
1772 </li><li> Preserve all the copyright notices of the Document.
1774 </li><li> Add an appropriate copyright notice for your modifications
1775 adjacent to the other copyright notices.
1777 </li><li> Include, immediately after the copyright notices, a license notice
1778 giving the public permission to use the Modified Version under the
1779 terms of this License, in the form shown in the Addendum below.
1781 </li><li> Preserve in that license notice the full lists of Invariant Sections
1782 and required Cover Texts given in the Document’s license notice.
1784 </li><li> Include an unaltered copy of this License.
1786 </li><li> Preserve the section Entitled “History”, Preserve its Title, and add
1787 to it an item stating at least the title, year, new authors, and
1788 publisher of the Modified Version as given on the Title Page. If
1789 there is no section Entitled “History” in the Document, create one
1790 stating the title, year, authors, and publisher of the Document as
1791 given on its Title Page, then add an item describing the Modified
1792 Version as stated in the previous sentence.
1794 </li><li> Preserve the network location, if any, given in the Document for
1795 public access to a Transparent copy of the Document, and likewise
1796 the network locations given in the Document for previous versions
1797 it was based on. These may be placed in the “History” section.
1798 You may omit a network location for a work that was published at
1799 least four years before the Document itself, or if the original
1800 publisher of the version it refers to gives permission.
1802 </li><li> For any section Entitled “Acknowledgements” or “Dedications”, Preserve
1803 the Title of the section, and preserve in the section all the
1804 substance and tone of each of the contributor acknowledgements and/or
1805 dedications given therein.
1807 </li><li> Preserve all the Invariant Sections of the Document,
1808 unaltered in their text and in their titles. Section numbers
1809 or the equivalent are not considered part of the section titles.
1811 </li><li> Delete any section Entitled “Endorsements”. Such a section
1812 may not be included in the Modified Version.
1814 </li><li> Do not retitle any existing section to be Entitled “Endorsements” or
1815 to conflict in title with any Invariant Section.
1817 </li><li> Preserve any Warranty Disclaimers.
1820 <p>If the Modified Version includes new front-matter sections or
1821 appendices that qualify as Secondary Sections and contain no material
1822 copied from the Document, you may at your option designate some or all
1823 of these sections as invariant. To do this, add their titles to the
1824 list of Invariant Sections in the Modified Version’s license notice.
1825 These titles must be distinct from any other section titles.
1827 <p>You may add a section Entitled “Endorsements”, provided it contains
1828 nothing but endorsements of your Modified Version by various
1829 parties—for example, statements of peer review or that the text has
1830 been approved by an organization as the authoritative definition of a
1833 <p>You may add a passage of up to five words as a Front-Cover Text, and a
1834 passage of up to 25 words as a Back-Cover Text, to the end of the list
1835 of Cover Texts in the Modified Version. Only one passage of
1836 Front-Cover Text and one of Back-Cover Text may be added by (or
1837 through arrangements made by) any one entity. If the Document already
1838 includes a cover text for the same cover, previously added by you or
1839 by arrangement made by the same entity you are acting on behalf of,
1840 you may not add another; but you may replace the old one, on explicit
1841 permission from the previous publisher that added the old one.
1843 <p>The author(s) and publisher(s) of the Document do not by this License
1844 give permission to use their names for publicity for or to assert or
1845 imply endorsement of any Modified Version.
1847 </li><li> COMBINING DOCUMENTS
1849 <p>You may combine the Document with other documents released under this
1850 License, under the terms defined in section 4 above for modified
1851 versions, provided that you include in the combination all of the
1852 Invariant Sections of all of the original documents, unmodified, and
1853 list them all as Invariant Sections of your combined work in its
1854 license notice, and that you preserve all their Warranty Disclaimers.
1856 <p>The combined work need only contain one copy of this License, and
1857 multiple identical Invariant Sections may be replaced with a single
1858 copy. If there are multiple Invariant Sections with the same name but
1859 different contents, make the title of each such section unique by
1860 adding at the end of it, in parentheses, the name of the original
1861 author or publisher of that section if known, or else a unique number.
1862 Make the same adjustment to the section titles in the list of
1863 Invariant Sections in the license notice of the combined work.
1865 <p>In the combination, you must combine any sections Entitled “History”
1866 in the various original documents, forming one section Entitled
1867 “History”; likewise combine any sections Entitled “Acknowledgements”,
1868 and any sections Entitled “Dedications”. You must delete all
1869 sections Entitled “Endorsements.”
1871 </li><li> COLLECTIONS OF DOCUMENTS
1873 <p>You may make a collection consisting of the Document and other documents
1874 released under this License, and replace the individual copies of this
1875 License in the various documents with a single copy that is included in
1876 the collection, provided that you follow the rules of this License for
1877 verbatim copying of each of the documents in all other respects.
1879 <p>You may extract a single document from such a collection, and distribute
1880 it individually under this License, provided you insert a copy of this
1881 License into the extracted document, and follow this License in all
1882 other respects regarding verbatim copying of that document.
1884 </li><li> AGGREGATION WITH INDEPENDENT WORKS
1886 <p>A compilation of the Document or its derivatives with other separate
1887 and independent documents or works, in or on a volume of a storage or
1888 distribution medium, is called an “aggregate” if the copyright
1889 resulting from the compilation is not used to limit the legal rights
1890 of the compilation’s users beyond what the individual works permit.
1891 When the Document is included in an aggregate, this License does not
1892 apply to the other works in the aggregate which are not themselves
1893 derivative works of the Document.
1895 <p>If the Cover Text requirement of section 3 is applicable to these
1896 copies of the Document, then if the Document is less than one half of
1897 the entire aggregate, the Document’s Cover Texts may be placed on
1898 covers that bracket the Document within the aggregate, or the
1899 electronic equivalent of covers if the Document is in electronic form.
1900 Otherwise they must appear on printed covers that bracket the whole
1903 </li><li> TRANSLATION
1905 <p>Translation is considered a kind of modification, so you may
1906 distribute translations of the Document under the terms of section 4.
1907 Replacing Invariant Sections with translations requires special
1908 permission from their copyright holders, but you may include
1909 translations of some or all Invariant Sections in addition to the
1910 original versions of these Invariant Sections. You may include a
1911 translation of this License, and all the license notices in the
1912 Document, and any Warranty Disclaimers, provided that you also include
1913 the original English version of this License and the original versions
1914 of those notices and disclaimers. In case of a disagreement between
1915 the translation and the original version of this License or a notice
1916 or disclaimer, the original version will prevail.
1918 <p>If a section in the Document is Entitled “Acknowledgements”,
1919 “Dedications”, or “History”, the requirement (section 4) to Preserve
1920 its Title (section 1) will typically require changing the actual
1923 </li><li> TERMINATION
1925 <p>You may not copy, modify, sublicense, or distribute the Document
1926 except as expressly provided under this License. Any attempt
1927 otherwise to copy, modify, sublicense, or distribute it is void, and
1928 will automatically terminate your rights under this License.
1930 <p>However, if you cease all violation of this License, then your license
1931 from a particular copyright holder is reinstated (a) provisionally,
1932 unless and until the copyright holder explicitly and finally
1933 terminates your license, and (b) permanently, if the copyright holder
1934 fails to notify you of the violation by some reasonable means prior to
1935 60 days after the cessation.
1937 <p>Moreover, your license from a particular copyright holder is
1938 reinstated permanently if the copyright holder notifies you of the
1939 violation by some reasonable means, this is the first time you have
1940 received notice of violation of this License (for any work) from that
1941 copyright holder, and you cure the violation prior to 30 days after
1942 your receipt of the notice.
1944 <p>Termination of your rights under this section does not terminate the
1945 licenses of parties who have received copies or rights from you under
1946 this License. If your rights have been terminated and not permanently
1947 reinstated, receipt of a copy of some or all of the same material does
1948 not give you any rights to use it.
1950 </li><li> FUTURE REVISIONS OF THIS LICENSE
1952 <p>The Free Software Foundation may publish new, revised versions
1953 of the GNU Free Documentation License from time to time. Such new
1954 versions will be similar in spirit to the present version, but may
1955 differ in detail to address new problems or concerns. See
1956 <a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>.
1958 <p>Each version of the License is given a distinguishing version number.
1959 If the Document specifies that a particular numbered version of this
1960 License “or any later version” applies to it, you have the option of
1961 following the terms and conditions either of that specified version or
1962 of any later version that has been published (not as a draft) by the
1963 Free Software Foundation. If the Document does not specify a version
1964 number of this License, you may choose any version ever published (not
1965 as a draft) by the Free Software Foundation. If the Document
1966 specifies that a proxy can decide which future versions of this
1967 License can be used, that proxy’s public statement of acceptance of a
1968 version permanently authorizes you to choose that version for the
1971 </li><li> RELICENSING
1973 <p>“Massive Multiauthor Collaboration Site” (or “MMC Site”) means any
1974 World Wide Web server that publishes copyrightable works and also
1975 provides prominent facilities for anybody to edit those works. A
1976 public wiki that anybody can edit is an example of such a server. A
1977 “Massive Multiauthor Collaboration” (or “MMC”) contained in the
1978 site means any set of copyrightable works thus published on the MMC
1981 <p>“CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0
1982 license published by Creative Commons Corporation, a not-for-profit
1983 corporation with a principal place of business in San Francisco,
1984 California, as well as future copyleft versions of that license
1985 published by that same organization.
1987 <p>“Incorporate” means to publish or republish a Document, in whole or
1988 in part, as part of another Document.
1990 <p>An MMC is “eligible for relicensing” if it is licensed under this
1991 License, and if all works that were first published under this License
1992 somewhere other than this MMC, and subsequently incorporated in whole
1993 or in part into the MMC, (1) had no cover texts or invariant sections,
1994 and (2) were thus incorporated prior to November 1, 2008.
1996 <p>The operator of an MMC Site may republish an MMC contained in the site
1997 under CC-BY-SA on the same site at any time before August 1, 2009,
1998 provided the MMC is eligible for relicensing.
2002 <a name="ADDENDUM_003a-How-to-use-this-License-for-your-documents"></a>
2003 <h3 class="heading">ADDENDUM: How to use this License for your documents</h3>
2005 <p>To use this License in a document you have written, include a copy of
2006 the License in the document and put the following copyright and
2007 license notices just after the title page:
2009 <div class="example">
2010 <pre class="example"> Copyright (C) <var>year</var> <var>your name</var>.
2011 Permission is granted to copy, distribute and/or modify this document
2012 under the terms of the GNU Free Documentation License, Version 1.3
2013 or any later version published by the Free Software Foundation;
2014 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
2015 Texts. A copy of the license is included in the section entitled ``GNU
2016 Free Documentation License''.
2019 <p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
2020 replace the “with…Texts.” line with this:
2022 <div class="example">
2023 <pre class="example"> with the Invariant Sections being <var>list their titles</var>, with
2024 the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
2025 being <var>list</var>.
2028 <p>If you have Invariant Sections without Cover Texts, or some other
2029 combination of the three, merge those two alternatives to suit the
2032 <p>If your document contains nontrivial examples of program code, we
2033 recommend releasing these examples in parallel under your choice of
2034 free software license, such as the GNU General Public License,
2035 to permit their use in free software.
2041 <a name="Procedure-Index"></a>
2042 <div class="header">
2044 Next: <a href="#Concept-Index" accesskey="n" rel="next">Concept Index</a>, Previous: <a href="#Copying-Information" accesskey="p" rel="prev">Copying Information</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
2046 <a name="Procedure-Index-1"></a>
2047 <h2 class="unnumbered">Procedure Index</h2>
2049 <table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Procedure-Index_fn_letter-A"><b>A</b></a>
2051 <a class="summary-letter" href="#Procedure-Index_fn_letter-B"><b>B</b></a>
2053 <a class="summary-letter" href="#Procedure-Index_fn_letter-C"><b>C</b></a>
2055 <a class="summary-letter" href="#Procedure-Index_fn_letter-D"><b>D</b></a>
2057 <a class="summary-letter" href="#Procedure-Index_fn_letter-E"><b>E</b></a>
2059 <a class="summary-letter" href="#Procedure-Index_fn_letter-G"><b>G</b></a>
2061 <a class="summary-letter" href="#Procedure-Index_fn_letter-H"><b>H</b></a>
2063 <a class="summary-letter" href="#Procedure-Index_fn_letter-I"><b>I</b></a>
2065 <a class="summary-letter" href="#Procedure-Index_fn_letter-K"><b>K</b></a>
2067 <a class="summary-letter" href="#Procedure-Index_fn_letter-M"><b>M</b></a>
2069 <a class="summary-letter" href="#Procedure-Index_fn_letter-O"><b>O</b></a>
2071 <a class="summary-letter" href="#Procedure-Index_fn_letter-P"><b>P</b></a>
2073 <a class="summary-letter" href="#Procedure-Index_fn_letter-R"><b>R</b></a>
2075 <a class="summary-letter" href="#Procedure-Index_fn_letter-S"><b>S</b></a>
2077 <a class="summary-letter" href="#Procedure-Index_fn_letter-X"><b>X</b></a>
2080 <table class="index-fn" border="0">
2081 <tr><td></td><th align="left">Index Entry</th><td> </td><th align="left"> Section</th></tr>
2082 <tr><td colspan="4"> <hr></td></tr>
2083 <tr><th><a name="Procedure-Index_fn_letter-A">A</a></th><td></td><td></td></tr>
2084 <tr><td></td><td valign="top"><a href="#index-alert_002ddescription_002d_003estring"><code>alert-description->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2085 <tr><td></td><td valign="top"><a href="#index-alert_002dget"><code>alert-get</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2086 <tr><td></td><td valign="top"><a href="#index-alert_002dlevel_002d_003estring"><code>alert-level->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2087 <tr><td></td><td valign="top"><a href="#index-alert_002dsend"><code>alert-send</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2088 <tr><td></td><td valign="top"><a href="#index-anonymous_002dclient_002dcredentials_003f"><code>anonymous-client-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2089 <tr><td></td><td valign="top"><a href="#index-anonymous_002dserver_002dcredentials_003f"><code>anonymous-server-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2090 <tr><td colspan="4"> <hr></td></tr>
2091 <tr><th><a name="Procedure-Index_fn_letter-B">B</a></th><td></td><td></td></tr>
2092 <tr><td></td><td valign="top"><a href="#index-bye"><code>bye</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2093 <tr><td colspan="4"> <hr></td></tr>
2094 <tr><th><a name="Procedure-Index_fn_letter-C">C</a></th><td></td><td></td></tr>
2095 <tr><td></td><td valign="top"><a href="#index-certificate_002dcredentials_003f"><code>certificate-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2096 <tr><td></td><td valign="top"><a href="#index-certificate_002drequest_002d_003estring"><code>certificate-request->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2097 <tr><td></td><td valign="top"><a href="#index-certificate_002dstatus_002d_003estring"><code>certificate-status->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2098 <tr><td></td><td valign="top"><a href="#index-certificate_002dtype_002d_003estring"><code>certificate-type->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2099 <tr><td></td><td valign="top"><a href="#index-certificate_002dverify_002d_003estring"><code>certificate-verify->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2100 <tr><td></td><td valign="top"><a href="#index-cipher_002d_003estring"><code>cipher->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2101 <tr><td></td><td valign="top"><a href="#index-cipher_002dsuite_002d_003estring"><code>cipher-suite->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2102 <tr><td></td><td valign="top"><a href="#index-close_002drequest_002d_003estring"><code>close-request->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2103 <tr><td></td><td valign="top"><a href="#index-compression_002dmethod_002d_003estring"><code>compression-method->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2104 <tr><td></td><td valign="top"><a href="#index-connection_002dend_002d_003estring"><code>connection-end->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2105 <tr><td></td><td valign="top"><a href="#index-credentials_002d_003estring"><code>credentials->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2106 <tr><td colspan="4"> <hr></td></tr>
2107 <tr><th><a name="Procedure-Index_fn_letter-D">D</a></th><td></td><td></td></tr>
2108 <tr><td></td><td valign="top"><a href="#index-dh_002dparameters_003f"><code>dh-parameters?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2109 <tr><td></td><td valign="top"><a href="#index-digest_002d_003estring"><code>digest->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2110 <tr><td colspan="4"> <hr></td></tr>
2111 <tr><th><a name="Procedure-Index_fn_letter-E">E</a></th><td></td><td></td></tr>
2112 <tr><td></td><td valign="top"><a href="#index-error_002d_003estring"><code>error->string</code></a>:</td><td> </td><td valign="top"><a href="#Exception-Handling">Exception Handling</a></td></tr>
2113 <tr><td></td><td valign="top"><a href="#index-error_002d_003estring-1"><code>error->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2114 <tr><td colspan="4"> <hr></td></tr>
2115 <tr><th><a name="Procedure-Index_fn_letter-G">G</a></th><td></td><td></td></tr>
2116 <tr><td></td><td valign="top"><a href="#index-gnutls_002dversion"><code>gnutls-version</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2117 <tr><td colspan="4"> <hr></td></tr>
2118 <tr><th><a name="Procedure-Index_fn_letter-H">H</a></th><td></td><td></td></tr>
2119 <tr><td></td><td valign="top"><a href="#index-handshake"><code>handshake</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2120 <tr><td></td><td valign="top"><a href="#index-handshake_002ddescription_002d_003estring"><code>handshake-description->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2121 <tr><td colspan="4"> <hr></td></tr>
2122 <tr><th><a name="Procedure-Index_fn_letter-I">I</a></th><td></td><td></td></tr>
2123 <tr><td></td><td valign="top"><a href="#index-import_002dopenpgp_002dcertificate"><code>import-openpgp-certificate</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2124 <tr><td></td><td valign="top"><a href="#index-import_002dopenpgp_002dkeyring"><code>import-openpgp-keyring</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2125 <tr><td></td><td valign="top"><a href="#index-import_002dopenpgp_002dprivate_002dkey"><code>import-openpgp-private-key</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2126 <tr><td></td><td valign="top"><a href="#index-import_002dx509_002dcertificate"><code>import-x509-certificate</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2127 <tr><td></td><td valign="top"><a href="#index-import_002dx509_002dprivate_002dkey"><code>import-x509-private-key</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2128 <tr><td colspan="4"> <hr></td></tr>
2129 <tr><th><a name="Procedure-Index_fn_letter-K">K</a></th><td></td><td></td></tr>
2130 <tr><td></td><td valign="top"><a href="#index-key_002dusage_002d_003estring"><code>key-usage->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2131 <tr><td></td><td valign="top"><a href="#index-kx_002d_003estring"><code>kx->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2132 <tr><td colspan="4"> <hr></td></tr>
2133 <tr><th><a name="Procedure-Index_fn_letter-M">M</a></th><td></td><td></td></tr>
2134 <tr><td></td><td valign="top"><a href="#index-mac_002d_003estring"><code>mac->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2135 <tr><td></td><td valign="top"><a href="#index-make_002danonymous_002dclient_002dcredentials"><code>make-anonymous-client-credentials</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2136 <tr><td></td><td valign="top"><a href="#index-make_002danonymous_002dserver_002dcredentials"><code>make-anonymous-server-credentials</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2137 <tr><td></td><td valign="top"><a href="#index-make_002dcertificate_002dcredentials"><code>make-certificate-credentials</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2138 <tr><td></td><td valign="top"><a href="#index-make_002ddh_002dparameters"><code>make-dh-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2139 <tr><td></td><td valign="top"><a href="#index-make_002dpsk_002dclient_002dcredentials"><code>make-psk-client-credentials</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2140 <tr><td></td><td valign="top"><a href="#index-make_002dpsk_002dserver_002dcredentials"><code>make-psk-server-credentials</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2141 <tr><td></td><td valign="top"><a href="#index-make_002drsa_002dparameters"><code>make-rsa-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Representation-of-Binary-Data">Representation of Binary Data</a></td></tr>
2142 <tr><td></td><td valign="top"><a href="#index-make_002drsa_002dparameters-1"><code>make-rsa-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2143 <tr><td></td><td valign="top"><a href="#index-make_002dsession"><code>make-session</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2144 <tr><td colspan="4"> <hr></td></tr>
2145 <tr><th><a name="Procedure-Index_fn_letter-O">O</a></th><td></td><td></td></tr>
2146 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dalgorithm"><code>openpgp-certificate-algorithm</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2147 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dfingerprint"><code>openpgp-certificate-fingerprint</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2148 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dfingerprint_0021"><code>openpgp-certificate-fingerprint!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2149 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dformat_002d_003estring"><code>openpgp-certificate-format->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2150 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002did"><code>openpgp-certificate-id</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2151 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002did_0021"><code>openpgp-certificate-id!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2152 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dname"><code>openpgp-certificate-name</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2153 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dnames"><code>openpgp-certificate-names</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2154 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dusage"><code>openpgp-certificate-usage</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2155 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_002dversion"><code>openpgp-certificate-version</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2156 <tr><td></td><td valign="top"><a href="#index-openpgp_002dcertificate_003f"><code>openpgp-certificate?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2157 <tr><td></td><td valign="top"><a href="#index-openpgp_002dkeyring_002dcontains_002dkey_002did_003f"><code>openpgp-keyring-contains-key-id?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2158 <tr><td></td><td valign="top"><a href="#index-openpgp_002dkeyring_003f"><code>openpgp-keyring?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2159 <tr><td></td><td valign="top"><a href="#index-openpgp_002dprivate_002dkey_003f"><code>openpgp-private-key?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2160 <tr><td colspan="4"> <hr></td></tr>
2161 <tr><th><a name="Procedure-Index_fn_letter-P">P</a></th><td></td><td></td></tr>
2162 <tr><td></td><td valign="top"><a href="#index-params_002d_003estring"><code>params->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2163 <tr><td></td><td valign="top"><a href="#index-peer_002dcertificate_002dstatus"><code>peer-certificate-status</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2164 <tr><td></td><td valign="top"><a href="#index-pk_002dalgorithm_002d_003estring"><code>pk-algorithm->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2165 <tr><td></td><td valign="top"><a href="#index-pkcs1_002dexport_002drsa_002dparameters"><code>pkcs1-export-rsa-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Representation-of-Binary-Data">Representation of Binary Data</a></td></tr>
2166 <tr><td></td><td valign="top"><a href="#index-pkcs1_002dexport_002drsa_002dparameters-1"><code>pkcs1-export-rsa-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2167 <tr><td></td><td valign="top"><a href="#index-pkcs1_002dimport_002drsa_002dparameters"><code>pkcs1-import-rsa-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2168 <tr><td></td><td valign="top"><a href="#index-pkcs3_002dexport_002ddh_002dparameters"><code>pkcs3-export-dh-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2169 <tr><td></td><td valign="top"><a href="#index-pkcs3_002dimport_002ddh_002dparameters"><code>pkcs3-import-dh-parameters</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2170 <tr><td></td><td valign="top"><a href="#index-pkcs8_002dimport_002dx509_002dprivate_002dkey"><code>pkcs8-import-x509-private-key</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2171 <tr><td></td><td valign="top"><a href="#index-protocol_002d_003estring"><code>protocol->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2172 <tr><td></td><td valign="top"><a href="#index-psk_002dclient_002dcredentials_003f"><code>psk-client-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2173 <tr><td></td><td valign="top"><a href="#index-psk_002dkey_002dformat_002d_003estring"><code>psk-key-format->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2174 <tr><td></td><td valign="top"><a href="#index-psk_002dserver_002dcredentials_003f"><code>psk-server-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2175 <tr><td colspan="4"> <hr></td></tr>
2176 <tr><th><a name="Procedure-Index_fn_letter-R">R</a></th><td></td><td></td></tr>
2177 <tr><td></td><td valign="top"><a href="#index-record_002dreceive_0021"><code>record-receive!</code></a>:</td><td> </td><td valign="top"><a href="#Input-and-Output">Input and Output</a></td></tr>
2178 <tr><td></td><td valign="top"><a href="#index-record_002dreceive_0021-1"><code>record-receive!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2179 <tr><td></td><td valign="top"><a href="#index-record_002dsend"><code>record-send</code></a>:</td><td> </td><td valign="top"><a href="#Input-and-Output">Input and Output</a></td></tr>
2180 <tr><td></td><td valign="top"><a href="#index-record_002dsend-1"><code>record-send</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2181 <tr><td></td><td valign="top"><a href="#index-rehandshake"><code>rehandshake</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2182 <tr><td></td><td valign="top"><a href="#index-rsa_002dparameters_003f"><code>rsa-parameters?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2183 <tr><td colspan="4"> <hr></td></tr>
2184 <tr><th><a name="Procedure-Index_fn_letter-S">S</a></th><td></td><td></td></tr>
2185 <tr><td></td><td valign="top"><a href="#index-server_002dname_002dtype_002d_003estring"><code>server-name-type->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2186 <tr><td></td><td valign="top"><a href="#index-server_002dsession_002dpsk_002dusername"><code>server-session-psk-username</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2187 <tr><td></td><td valign="top"><a href="#index-session_002dauthentication_002dtype"><code>session-authentication-type</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2188 <tr><td></td><td valign="top"><a href="#index-session_002dcertificate_002dtype"><code>session-certificate-type</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2189 <tr><td></td><td valign="top"><a href="#index-session_002dcipher"><code>session-cipher</code></a>:</td><td> </td><td valign="top"><a href="#Enumerates-and-Constants">Enumerates and Constants</a></td></tr>
2190 <tr><td></td><td valign="top"><a href="#index-session_002dcipher-1"><code>session-cipher</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2191 <tr><td></td><td valign="top"><a href="#index-session_002dclient_002dauthentication_002dtype"><code>session-client-authentication-type</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2192 <tr><td></td><td valign="top"><a href="#index-session_002dcompression_002dmethod"><code>session-compression-method</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2193 <tr><td></td><td valign="top"><a href="#index-session_002dkx"><code>session-kx</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2194 <tr><td></td><td valign="top"><a href="#index-session_002dmac"><code>session-mac</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2195 <tr><td></td><td valign="top"><a href="#index-session_002dour_002dcertificate_002dchain"><code>session-our-certificate-chain</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2196 <tr><td></td><td valign="top"><a href="#index-session_002dpeer_002dcertificate_002dchain"><code>session-peer-certificate-chain</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2197 <tr><td></td><td valign="top"><a href="#index-session_002dprotocol"><code>session-protocol</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2198 <tr><td></td><td valign="top"><a href="#index-session_002drecord_002dport"><code>session-record-port</code></a>:</td><td> </td><td valign="top"><a href="#Input-and-Output">Input and Output</a></td></tr>
2199 <tr><td></td><td valign="top"><a href="#index-session_002drecord_002dport-1"><code>session-record-port</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2200 <tr><td></td><td valign="top"><a href="#index-session_002dserver_002dauthentication_002dtype"><code>session-server-authentication-type</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2201 <tr><td></td><td valign="top"><a href="#index-session_003f"><code>session?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2202 <tr><td></td><td valign="top"><a href="#index-set_002danonymous_002dserver_002ddh_002dparameters_0021"><code>set-anonymous-server-dh-parameters!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2203 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002ddh_002dparameters_0021"><code>set-certificate-credentials-dh-parameters!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2204 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dopenpgp_002dkeys_0021"><code>set-certificate-credentials-openpgp-keys!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2205 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002drsa_002dexport_002dparameters_0021"><code>set-certificate-credentials-rsa-export-parameters!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2206 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dverify_002dflags_0021"><code>set-certificate-credentials-verify-flags!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2207 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dverify_002dlimits_0021"><code>set-certificate-credentials-verify-limits!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2208 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dcrl_002ddata_0021"><code>set-certificate-credentials-x509-crl-data!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2209 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dcrl_002dfile_0021"><code>set-certificate-credentials-x509-crl-file!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2210 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dkey_002ddata_0021"><code>set-certificate-credentials-x509-key-data!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2211 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dkey_002dfiles_0021"><code>set-certificate-credentials-x509-key-files!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2212 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dkeys_0021"><code>set-certificate-credentials-x509-keys!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2213 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dtrust_002ddata_0021"><code>set-certificate-credentials-x509-trust-data!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2214 <tr><td></td><td valign="top"><a href="#index-set_002dcertificate_002dcredentials_002dx509_002dtrust_002dfile_0021"><code>set-certificate-credentials-x509-trust-file!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2215 <tr><td></td><td valign="top"><a href="#index-set_002dlog_002dlevel_0021"><code>set-log-level!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2216 <tr><td></td><td valign="top"><a href="#index-set_002dlog_002dprocedure_0021"><code>set-log-procedure!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2217 <tr><td></td><td valign="top"><a href="#index-set_002dpsk_002dclient_002dcredentials_0021"><code>set-psk-client-credentials!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2218 <tr><td></td><td valign="top"><a href="#index-set_002dpsk_002dserver_002dcredentials_002dfile_0021"><code>set-psk-server-credentials-file!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2219 <tr><td></td><td valign="top"><a href="#index-set_002dserver_002dsession_002dcertificate_002drequest_0021"><code>set-server-session-certificate-request!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2220 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dcredentials_0021"><code>set-session-credentials!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2221 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002ddefault_002dpriority_0021"><code>set-session-default-priority!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2222 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002ddh_002dprime_002dbits_0021"><code>set-session-dh-prime-bits!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2223 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dpriorities_0021"><code>set-session-priorities!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2224 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dserver_002dname_0021"><code>set-session-server-name!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2225 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dtransport_002dfd_0021"><code>set-session-transport-fd!</code></a>:</td><td> </td><td valign="top"><a href="#Input-and-Output">Input and Output</a></td></tr>
2226 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dtransport_002dfd_0021-1"><code>set-session-transport-fd!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2227 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dtransport_002dport_0021"><code>set-session-transport-port!</code></a>:</td><td> </td><td valign="top"><a href="#Input-and-Output">Input and Output</a></td></tr>
2228 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dtransport_002dport_0021-1"><code>set-session-transport-port!</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2229 <tr><td></td><td valign="top"><a href="#index-sign_002dalgorithm_002d_003estring"><code>sign-algorithm->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2230 <tr><td></td><td valign="top"><a href="#index-srp_002dclient_002dcredentials_003f"><code>srp-client-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2231 <tr><td></td><td valign="top"><a href="#index-srp_002dserver_002dcredentials_003f"><code>srp-server-credentials?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2232 <tr><td colspan="4"> <hr></td></tr>
2233 <tr><th><a name="Procedure-Index_fn_letter-X">X</a></th><td></td><td></td></tr>
2234 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dauthority_002dkey_002did"><code>x509-certificate-authority-key-id</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2235 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002ddn"><code>x509-certificate-dn</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2236 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002ddn_002doid"><code>x509-certificate-dn-oid</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2237 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dformat_002d_003estring"><code>x509-certificate-format->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2238 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dissuer_002ddn"><code>x509-certificate-issuer-dn</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2239 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dissuer_002ddn_002doid"><code>x509-certificate-issuer-dn-oid</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2240 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dkey_002did"><code>x509-certificate-key-id</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2241 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dkey_002dusage"><code>x509-certificate-key-usage</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2242 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dmatches_002dhostname_003f"><code>x509-certificate-matches-hostname?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2243 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dpublic_002dkey_002dalgorithm"><code>x509-certificate-public-key-algorithm</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2244 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dsignature_002dalgorithm"><code>x509-certificate-signature-algorithm</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2245 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dsubject_002dalternative_002dname"><code>x509-certificate-subject-alternative-name</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2246 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dsubject_002dkey_002did"><code>x509-certificate-subject-key-id</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2247 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_002dversion"><code>x509-certificate-version</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2248 <tr><td></td><td valign="top"><a href="#index-x509_002dcertificate_003f"><code>x509-certificate?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2249 <tr><td></td><td valign="top"><a href="#index-x509_002dprivate_002dkey_003f"><code>x509-private-key?</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2250 <tr><td></td><td valign="top"><a href="#index-x509_002dsubject_002dalternative_002dname_002d_003estring"><code>x509-subject-alternative-name->string</code></a>:</td><td> </td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2251 <tr><td colspan="4"> <hr></td></tr>
2253 <table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Procedure-Index_fn_letter-A"><b>A</b></a>
2255 <a class="summary-letter" href="#Procedure-Index_fn_letter-B"><b>B</b></a>
2257 <a class="summary-letter" href="#Procedure-Index_fn_letter-C"><b>C</b></a>
2259 <a class="summary-letter" href="#Procedure-Index_fn_letter-D"><b>D</b></a>
2261 <a class="summary-letter" href="#Procedure-Index_fn_letter-E"><b>E</b></a>
2263 <a class="summary-letter" href="#Procedure-Index_fn_letter-G"><b>G</b></a>
2265 <a class="summary-letter" href="#Procedure-Index_fn_letter-H"><b>H</b></a>
2267 <a class="summary-letter" href="#Procedure-Index_fn_letter-I"><b>I</b></a>
2269 <a class="summary-letter" href="#Procedure-Index_fn_letter-K"><b>K</b></a>
2271 <a class="summary-letter" href="#Procedure-Index_fn_letter-M"><b>M</b></a>
2273 <a class="summary-letter" href="#Procedure-Index_fn_letter-O"><b>O</b></a>
2275 <a class="summary-letter" href="#Procedure-Index_fn_letter-P"><b>P</b></a>
2277 <a class="summary-letter" href="#Procedure-Index_fn_letter-R"><b>R</b></a>
2279 <a class="summary-letter" href="#Procedure-Index_fn_letter-S"><b>S</b></a>
2281 <a class="summary-letter" href="#Procedure-Index_fn_letter-X"><b>X</b></a>
2286 <a name="Concept-Index"></a>
2287 <div class="header">
2289 Previous: <a href="#Procedure-Index" accesskey="p" rel="prev">Procedure Index</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
2291 <a name="Concept-Index-1"></a>
2292 <h2 class="unnumbered">Concept Index</h2>
2294 <table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Concept-Index_cp_letter-C"><b>C</b></a>
2296 <a class="summary-letter" href="#Concept-Index_cp_letter-E"><b>E</b></a>
2298 <a class="summary-letter" href="#Concept-Index_cp_letter-F"><b>F</b></a>
2300 <a class="summary-letter" href="#Concept-Index_cp_letter-G"><b>G</b></a>
2302 <a class="summary-letter" href="#Concept-Index_cp_letter-H"><b>H</b></a>
2304 <a class="summary-letter" href="#Concept-Index_cp_letter-S"><b>S</b></a>
2307 <table class="index-cp" border="0">
2308 <tr><td></td><th align="left">Index Entry</th><td> </td><th align="left"> Section</th></tr>
2309 <tr><td colspan="4"> <hr></td></tr>
2310 <tr><th><a name="Concept-Index_cp_letter-C">C</a></th><td></td><td></td></tr>
2311 <tr><td></td><td valign="top"><a href="#index-constant">constant</a>:</td><td> </td><td valign="top"><a href="#Enumerates-and-Constants">Enumerates and Constants</a></td></tr>
2312 <tr><td colspan="4"> <hr></td></tr>
2313 <tr><th><a name="Concept-Index_cp_letter-E">E</a></th><td></td><td></td></tr>
2314 <tr><td></td><td valign="top"><a href="#index-enumerate">enumerate</a>:</td><td> </td><td valign="top"><a href="#Enumerates-and-Constants">Enumerates and Constants</a></td></tr>
2315 <tr><td></td><td valign="top"><a href="#index-errors">errors</a>:</td><td> </td><td valign="top"><a href="#Exception-Handling">Exception Handling</a></td></tr>
2316 <tr><td></td><td valign="top"><a href="#index-exceptions">exceptions</a>:</td><td> </td><td valign="top"><a href="#Exception-Handling">Exception Handling</a></td></tr>
2317 <tr><td colspan="4"> <hr></td></tr>
2318 <tr><th><a name="Concept-Index_cp_letter-F">F</a></th><td></td><td></td></tr>
2319 <tr><td></td><td valign="top"><a href="#index-FDL_002c-GNU-Free-Documentation-License">FDL, GNU Free Documentation License</a>:</td><td> </td><td valign="top"><a href="#Copying-Information">Copying Information</a></td></tr>
2320 <tr><td colspan="4"> <hr></td></tr>
2321 <tr><th><a name="Concept-Index_cp_letter-G">G</a></th><td></td><td></td></tr>
2322 <tr><td></td><td valign="top"><a href="#index-gnutls_002derror"><code>gnutls-error</code></a>:</td><td> </td><td valign="top"><a href="#Exception-Handling">Exception Handling</a></td></tr>
2323 <tr><td colspan="4"> <hr></td></tr>
2324 <tr><th><a name="Concept-Index_cp_letter-H">H</a></th><td></td><td></td></tr>
2325 <tr><td></td><td valign="top"><a href="#index-homogeneous-vector">homogeneous vector</a>:</td><td> </td><td valign="top"><a href="#Representation-of-Binary-Data">Representation of Binary Data</a></td></tr>
2326 <tr><td colspan="4"> <hr></td></tr>
2327 <tr><th><a name="Concept-Index_cp_letter-S">S</a></th><td></td><td></td></tr>
2328 <tr><td></td><td valign="top"><a href="#index-SRFI_002d4">SRFI-4</a>:</td><td> </td><td valign="top"><a href="#Representation-of-Binary-Data">Representation of Binary Data</a></td></tr>
2329 <tr><td colspan="4"> <hr></td></tr>
2331 <table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Concept-Index_cp_letter-C"><b>C</b></a>
2333 <a class="summary-letter" href="#Concept-Index_cp_letter-E"><b>E</b></a>
2335 <a class="summary-letter" href="#Concept-Index_cp_letter-F"><b>F</b></a>
2337 <a class="summary-letter" href="#Concept-Index_cp_letter-G"><b>G</b></a>
2339 <a class="summary-letter" href="#Concept-Index_cp_letter-H"><b>H</b></a>
2341 <a class="summary-letter" href="#Concept-Index_cp_letter-S"><b>S</b></a>