Imported Upstream version 3.3.27
[platform/upstream/gnutls.git] / doc / gnutls-guile.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- This manual is last updated 23 March 2015 for version
4 3.3.26 of GnuTLS.
5
6 Copyright (C) 2001-2012, 2014 Free Software Foundation, Inc.
7
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/ -->
15 <head>
16 <title>GnuTLS-Guile 3.3.26</title>
17
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">
29 <!--
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}
53 body { 
54         margin: 2%;
55         padding: 0 5%;
56         background: #ffffff;
57 }
58 h1,h2,h3,h4,h5 {
59     font-weight: bold;
60     padding: 5px 5px 5px 5px;
61     background-color: #c2e0ff;
62     color: #336699;
63 }
64 h1 {
65     padding: 2em 2em 2em 5%;
66     color: white;
67     background: #336699;
68     text-align: center;
69     letter-spacing: 3px;
70 }
71 h2 { text-decoration: underline; }
72 pre {
73   margin: 0 5%;
74   padding: 0.5em;
75 }
76 pre.example,pre.verbatim {
77   padding-bottom: 1em;
78
79   border: solid #c2e0ff;
80   background: #f0faff;
81   border-width: 1px 1px 1px 5px;
82   margin: 1em auto;
83   width: 90%;
84 }
85
86 div.node {
87   margin: 0 -5% 0 -2%;
88   padding: 0.5em 0.5em;
89   margin-top: 0.5em;
90   margin-bottom: 0.5em;
91   font-weight: bold;
92 }
93 dd, li {
94   padding-top: 0.1em;
95   padding-bottom: 0.1em;
96 }
97 div.float {
98
99   margin-bottom: 0.5em;
100   text-align: center;
101 }
102
103 table {
104   text-align: left;
105   margin-left:auto;
106   margin-right:auto;
107   border-spacing: 7px;
108   width: 50%;
109 }
110
111 th {
112   padding: 0;
113   color: #336699;
114   background-color: #c2e0ff;
115   border: solid #000000;
116   border-width: 0px;
117   margin: 1em auto;
118   text-align: center;
119   margin-left:auto;
120   margin-right:auto;
121 }
122
123 td {
124   padding: 0;
125   border: solid #000000;
126   background-color: #f0faff;
127   border-width: 0px;
128   margin: 1em auto;
129   text-align: left;
130   margin-left:auto;
131   margin-right:auto;
132   padding-left: 1em;
133 }
134
135 dl {
136   text-align: left;
137   margin-left:auto;
138   margin-right:auto;
139   width: 50%;
140
141   padding-left: 1em;
142   border: solid #c2e0ff;
143   background: #f0faff;
144   border-width: 5px 1px 1px 1px;
145   margin: 1em auto;
146 }
147
148 -->
149 </style>
150
151
152 </head>
153
154 <body lang="en">
155 <h1 class="settitle" align="center">GnuTLS-Guile 3.3.26</h1>
156
157
158
159
160
161
162
163 <a name="SEC_Contents"></a>
164 <h2 class="contents-heading">Table of Contents</h2>
165
166 <div class="contents">
167
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>
178   </ul></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>
184   </ul></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>
189 </ul>
190 </div>
191
192
193 <a name="Top"></a>
194 <div class="header">
195 <p>
196 Next: <a href="#Preface" accesskey="n" rel="next">Preface</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
197 </div>
198 <a name="GnuTLS_002dGuile"></a>
199 <h1 class="top">GnuTLS-Guile</h1>
200
201 <p>This manual is last updated 23 March 2015 for version
202 3.3.26 of GnuTLS.
203 </p>
204 <p>Copyright &copy; 2001-2012, 2014 Free Software Foundation, Inc.
205 </p>
206 <blockquote>
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 &ldquo;GNU Free
212 Documentation License&rdquo;.
213 </p></blockquote>
214
215
216 <table class="menu" border="0" cellspacing="0">
217 <tr><td align="left" valign="top">&bull; <a href="#Preface" accesskey="1">Preface</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Preface.
218 </td></tr>
219 <tr><td align="left" valign="top">&bull; <a href="#Guile-Preparations" accesskey="2">Guile Preparations</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Note on installation and environment.
220 </td></tr>
221 <tr><td align="left" valign="top">&bull; <a href="#Guile-API-Conventions" accesskey="3">Guile API Conventions</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Naming conventions and other idiosyncrasies.
222 </td></tr>
223 <tr><td align="left" valign="top">&bull; <a href="#Guile-Examples" accesskey="4">Guile Examples</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Quick start.
224 </td></tr>
225 <tr><td align="left" valign="top">&bull; <a href="#Guile-Reference" accesskey="5">Guile Reference</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The Scheme GnuTLS programming interface.
226 </td></tr>
227 <tr><th colspan="3" align="left" valign="top"><pre class="menu-comment">
228
229 </pre></th></tr><tr><td align="left" valign="top">&bull; <a href="#Copying-Information" accesskey="6">Copying Information</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">You can copy and modify this manual.
230 </td></tr>
231 <tr><td align="left" valign="top">&bull; <a href="#Procedure-Index" accesskey="7">Procedure Index</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
232 </td></tr>
233 <tr><td align="left" valign="top">&bull; <a href="#Concept-Index" accesskey="8">Concept Index</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
234 </td></tr>
235 </table>
236
237 <hr>
238 <a name="Preface"></a>
239 <div class="header">
240 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
242 </div>
243 <a name="Preface-1"></a>
244 <h2 class="chapter">1 Preface</h2>
245
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.
250 </p>
251 <p>At this stage, not all the C functions are available from Scheme, but
252 a large subset thereof is available.
253 </p>
254 <hr>
255 <a name="Guile-Preparations"></a>
256 <div class="header">
257 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
259 </div>
260 <a name="Guile-Preparations-1"></a>
261 <h2 class="chapter">2 Guile Preparations</h2>
262
263 <p>The GnuTLS Guile bindings are available for both the 1.8 and 2.0 stable
264 series of Guile.
265 </p>
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
269 something like this:
270 </p>
271 <div class="example">
272 <pre class="example">$ guile
273 guile&gt; (use-modules (gnutls))
274 &lt;unnamed port&gt;: no code for module (gnutls)
275 guile&gt;
276 </pre></div>
277
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:
282 </p>
283 <div class="example">
284 <pre class="example">$ ./configure --with-guile-site-dir=no
285 </pre></div>
286
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.
290 </p>
291 <p>If Guile was installed into <code>/usr</code>, you may also install GnuTLS
292 using the same prefix:
293 </p>
294 <div class="example">
295 <pre class="example">$ ./configure --prefix=/usr
296 </pre></div>
297
298 <p>If you want to specify the path to install the Guile bindings you can
299 also specify the path directly:
300 </p>
301 <div class="example">
302 <pre class="example">$ ./configure --with-guile-site-dir=/opt/guile/share/guile/site
303 </pre></div>
304
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:
309 </p>
310 <div class="example">
311 <pre class="example">$ GUILE_LOAD_PATH=&quot;/usr/local/share/guile/site:$GUILE_LOAD_PATH&quot; guile
312 guile&gt; (use-modules (gnutls))
313 guile&gt;
314 </pre></div>
315
316 <p>Alternatively, you can modify Guile&rsquo;s <code>%load-path</code> variable
317 (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Build-Config">Guile&rsquo;s run-time options</a> in <cite>The GNU Guile
318 Reference Manual</cite>).
319 </p>
320 <p>At this point, you might get an error regarding
321 <samp>libguile-gnutls-v-0</samp> similar to:
322 </p>
323 <div class="example">
324 <pre class="example">gnutls.scm:361:1: In procedure dynamic-link in expression (load-extension &quot;libguile-gnutls-v-0&quot; &quot;scm_init_gnutls&quot;):
325 gnutls.scm:361:1: file: &quot;libguile-gnutls-v-0&quot;, message: &quot;libguile-gnutls-v-0.so: cannot open shared object file: No such file or directory&quot;
326 </pre></div>
327
328 <p>In this case, you will need to modify the run-time linker path, for
329 example as follows:
330 </p>
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&gt; (use-modules (gnutls))
334 guile&gt;
335 </pre></div>
336
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:
339 </p>
340 <div class="example">
341 <pre class="example">$ guile
342 guile&gt; (use-modules (gnutls))
343 guile&gt; (gnutls-version)
344 &quot;3.3.26&quot;
345 guile&gt; 
346 </pre></div>
347
348
349 <hr>
350 <a name="Guile-API-Conventions"></a>
351 <div class="header">
352 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
354 </div>
355 <a name="Guile-API-Conventions-1"></a>
356 <h2 class="chapter">3 Guile API Conventions</h2>
357
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.
360 </p>
361 <table class="menu" border="0" cellspacing="0">
362 <tr><td align="left" valign="top">&bull; <a href="#Enumerates-and-Constants" accesskey="1">Enumerates and Constants</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Representation of C-side constants.
363 </td></tr>
364 <tr><td align="left" valign="top">&bull; <a href="#Procedure-Names" accesskey="2">Procedure Names</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Naming conventions.
365 </td></tr>
366 <tr><td align="left" valign="top">&bull; <a href="#Representation-of-Binary-Data" accesskey="3">Representation of Binary Data</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Binary data buffers.
367 </td></tr>
368 <tr><td align="left" valign="top">&bull; <a href="#Input-and-Output" accesskey="4">Input and Output</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Input and output.
369 </td></tr>
370 <tr><td align="left" valign="top">&bull; <a href="#Exception-Handling" accesskey="5">Exception Handling</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Exceptions.
371 </td></tr>
372 </table>
373
374 <hr>
375 <a name="Enumerates-and-Constants"></a>
376 <div class="header">
377 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
379 </div>
380 <a name="Enumerates-and-Constants-1"></a>
381 <h3 class="section">3.1 Enumerates and Constants</h3>
382
383 <a name="index-enumerate"></a>
384 <a name="index-constant"></a>
385
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&mdash;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.
392 </p>
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:
396 </p>
397 <ul>
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.
404 </li></ul>
405
406 <p>Consider for instance this C-side enumerate:
407 </p>
408 <div class="example">
409 <pre class="example">typedef enum
410 {
411   GNUTLS_CRD_CERTIFICATE = 1,
412   GNUTLS_CRD_ANON,
413   GNUTLS_CRD_SRP,
414   GNUTLS_CRD_PSK
415 } gnutls_credentials_type_t;
416 </pre></div>
417
418 <p>The corresponding Scheme values are bound to the following variables
419 exported by the <code>(gnutls)</code> module:
420 </p>
421 <div class="example">
422 <pre class="example">credentials/certificate
423 credentials/anonymous
424 credentials/srp
425 credentials/psk
426 </pre></div>
427
428 <p>Hopefully, most variable names can be deduced from this convention.
429 </p>
430 <p>Scheme-side &ldquo;enumerate&rdquo; 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:
433 </p>
434 <a name="index-session_002dcipher"></a>
435
436 <div class="example">
437 <pre class="example">(let ((session (make-session connection-end/client)))
438
439   ;;
440   ;; ...
441   ;;
442
443   ;; Check the ciphering algorithm currently used by SESSION.
444   (if (eq? cipher/arcfour (session-cipher session))
445       (format #t &quot;We're using the ARCFOUR algorithm&quot;)))
446 </pre></div>
447
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-&gt;string
450 cipher/arcfour)</code> yields <code>&quot;ARCFOUR 128&quot;</code>, while
451 <code>(key-usage-&gt;string key-usage/digital-signature)</code> yields
452 <code>&quot;digital-signature&quot;</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.
455 </p>
456
457 <hr>
458 <a name="Procedure-Names"></a>
459 <div class="header">
460 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
462 </div>
463 <a name="Procedure-Names-1"></a>
464 <h3 class="section">3.2 Procedure Names</h3>
465
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&rsquo;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>).
475 </p>
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.
481 </p>
482 <hr>
483 <a name="Representation-of-Binary-Data"></a>
484 <div class="header">
485 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
487 </div>
488 <a name="Representation-of-Binary-Data-1"></a>
489 <h3 class="section">3.3 Representation of Binary Data</h3>
490
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
494 binary data.
495 </p>
496 <a name="index-SRFI_002d4"></a>
497 <a name="index-homogeneous-vector"></a>
498
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.
503 </p>
504 <p>As an example, generating and then exporting RSA parameters in the PEM
505 format can be done as follows:
506 </p>
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>
510
511 <div class="example">
512 <pre class="example">(let* ((rsa-params (make-rsa-parameters 1024))
513        (raw-data
514         (pkcs1-export-rsa-parameters rsa-params
515                                      x509-certificate-format/pem)))
516   (uniform-vector-write raw-data (open-output-file &quot;some-file.pem&quot;)))
517 </pre></div>
518
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>.
520 </p>
521
522 <hr>
523 <a name="Input-and-Output"></a>
524 <div class="header">
525 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
527 </div>
528 <a name="Input-and-Output-1"></a>
529 <h3 class="section">3.4 Input and Output</h3>
530
531 <a name="index-set_002dsession_002dtransport_002dport_0021"></a>
532 <a name="index-set_002dsession_002dtransport_002dfd_0021"></a>
533
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>.
538 </p>
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-&gt;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-&gt;fdes</code> and <code>fileno</code></a> in <cite>The GNU Guile Reference
545 Manual</cite>).  This would work as follows:
546 </p>
547 <div class="example">
548 <pre class="example">(let ((socket (socket PF_INET SOCK_STREAM 0))
549       (session (make-session connection-end/client)))
550
551   ;;
552   ;; Establish a TCP connection...
553   ;;
554
555   ;; Use the file descriptor that underlies SOCKET.
556   (set-session-transport-fd! session (fileno socket)))
557 </pre></div>
558
559 <a name="index-session_002drecord_002dport"></a>
560
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>:
564 </p>
565 <div class="example">
566 <pre class="example">(let ((session (make-session connection-end/client)))
567
568   ;;
569   ;; Initialize the various parameters of SESSION, set up
570   ;; a network connection, etc...
571   ;;
572
573   (let ((i/o (session-record-port session)))
574     (write &quot;Hello peer!&quot; i/o)
575     (let ((greetings (read i/o)))
576
577       ;; ...
578
579       (bye session close-request/rdwr))))
580 </pre></div>
581
582 <a name="index-record_002dsend"></a>
583 <a name="index-record_002dreceive_0021"></a>
584
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.
589 </p>
590
591 <hr>
592 <a name="Exception-Handling"></a>
593 <div class="header">
594 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
596 </div>
597 <a name="Exception-Handling-1"></a>
598 <h3 class="section">3.5 Exception Handling</h3>
599
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>
604
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-&gt;string</code>
613 procedure.
614 </p>
615 <p>The following examples illustrates how GnuTLS exceptions can be
616 handled:
617 </p>
618 <div class="example">
619 <pre class="example">(let ((session (make-session connection-end/server)))
620
621   ;;
622   ;; ...
623   ;;
624
625   (catch 'gnutls-error
626     (lambda ()
627       (handshake session))
628     (lambda (key err function . currently-unused)
629       (format (current-error-port)
630               &quot;a GnuTLS error was raised by `~a': ~a~%&quot;
631               function (error-&gt;string err)))))
632 </pre></div>
633
634 <p>Again, error values can be compared using <code>eq?</code>:
635 </p>
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                   &quot;a fatal alert was caught!~%&quot;)
642           (format (current-error-port)
643                   &quot;something bad happened: ~a~%&quot;
644                   (error-&gt;string err))))
645 </pre></div>
646
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,
650 as in this example.
651 </p>
652
653 <hr>
654 <a name="Guile-Examples"></a>
655 <div class="header">
656 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
658 </div>
659 <a name="Guile-Examples-1"></a>
660 <h2 class="chapter">4 Guile Examples</h2>
661
662 <p>This chapter provides examples that illustrate common use cases.
663 </p>
664 <table class="menu" border="0" cellspacing="0">
665 <tr><td align="left" valign="top">&bull; <a href="#Anonymous-Authentication-Guile-Example" accesskey="1">Anonymous Authentication Guile Example</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Simplest client and server.
666 </td></tr>
667 <tr><td align="left" valign="top">&bull; <a href="#OpenPGP-Authentication-Guile-Example" accesskey="2">OpenPGP Authentication Guile Example</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Using OpenPGP-based authentication.
668 </td></tr>
669 <tr><td align="left" valign="top">&bull; <a href="#Importing-OpenPGP-Keys-Guile-Example" accesskey="3">Importing OpenPGP Keys Guile Example</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Importing keys from files.
670 </td></tr>
671 </table>
672
673 <hr>
674 <a name="Anonymous-Authentication-Guile-Example"></a>
675 <div class="header">
676 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
678 </div>
679 <a name="Anonymous-Authentication-Guile-Example-1"></a>
680 <h3 class="section">4.1 Anonymous Authentication Guile Example</h3>
681
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.
685 </p>
686 <p>The client-side code would look like this (assuming <var>some-socket</var>
687 is bound to an open socket port):
688 </p>
689 <a name="index-connection_002dend_002fclient"></a>
690 <a name="index-kx_002fanon_002ddh"></a>
691 <a name="index-close_002drequest_002frdwr"></a>
692
693 <div class="example">
694 <pre class="example">;; Client-side.
695
696 (let ((client (make-session connection-end/client)))
697   ;; Use the default settings.
698   (set-session-default-priority! client)
699
700   ;; Don't use certificate-based authentication.
701   (set-session-certificate-type-priority! client '())
702
703   ;; Request the &quot;anonymous Diffie-Hellman&quot; key exchange method.
704   (set-session-kx-priority! client (list kx/anon-dh))
705
706   ;; Specify the underlying socket.
707   (set-session-transport-fd! client (fileno some-socket))
708
709   ;; Create anonymous credentials.
710   (set-session-credentials! client
711                             (make-anonymous-client-credentials))
712
713   ;; Perform the TLS handshake with the server.
714   (handshake client)
715
716   ;; Send data over the TLS record layer.
717   (write &quot;hello, world!&quot; (session-record-port client))
718
719   ;; Terminate the TLS session.
720   (bye client close-request/rdwr))
721 </pre></div>
722
723 <p>The corresponding server would look like this (again, assuming
724 <var>some-socket</var> is bound to a socket port):
725 </p>
726 <a name="index-connection_002dend_002fserver"></a>
727
728 <div class="example">
729 <pre class="example">;; Server-side.
730
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))
735
736   ;; Specify the underlying transport socket.
737   (set-session-transport-fd! server (fileno some-socket))
738
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))
745
746   ;; Perform the TLS handshake with the client.
747   (handshake server)
748
749   ;; Receive data over the TLS record layer.
750   (let ((message (read (session-record-port server))))
751     (format #t &quot;received the following message: ~a~%&quot;
752             message)
753
754     (bye server close-request/rdwr)))
755 </pre></div>
756
757 <p>This is it!
758 </p>
759
760 <hr>
761 <a name="OpenPGP-Authentication-Guile-Example"></a>
762 <div class="header">
763 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
765 </div>
766 <a name="OpenPGP-Authentication-Guile-Example-1"></a>
767 <h3 class="section">4.2 OpenPGP Authentication Guile Example</h3>
768
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>).
775 </p>
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&rsquo;s OpenPGP public and
778 secret key, respectively, client-side code would look like this:
779 </p>
780 <a name="index-certificate_002dtype_002fopenpgp"></a>
781
782 <div class="example">
783 <pre class="example">;; Client-side.
784
785 (define %certs (list certificate-type/openpgp))
786
787 (let ((client (make-session connection-end/client))
788       (cred   (make-certificate-credentials)))
789   (set-session-default-priority! client)
790
791   ;; Choose OpenPGP certificates.
792   (set-session-certificate-type-priority! client %certs)
793
794   ;; Prepare appropriate client credentials.
795   (set-certificate-credentials-openpgp-keys! cred pub sec)
796   (set-session-credentials! client cred)
797
798   ;; Specify the underlying transport socket.
799   (set-session-transport-fd! client (fileno some-socket))
800
801   (handshake client)
802   (write &quot;hello, world!&quot; (session-record-port client))
803   (bye client close-request/rdwr))
804 </pre></div>
805
806 <p>Similarly, server-side code would be along these lines:
807 </p>
808 <div class="example">
809 <pre class="example">;; Server-side.
810
811 (define %certs (list certificate-type/openpgp))
812
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)
817
818   ;; Choose OpenPGP certificates.
819   (set-session-certificate-type-priority! server %certs)
820
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))
827
828   (set-session-transport-fd! server (fileno some-socket))
829
830   (handshake server)
831   (let ((msg (read (session-record-port server))))
832     (format #t &quot;received: ~a~%&quot; msg)
833
834     (bye server close-request/rdwr)))
835 </pre></div>
836
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>).
840 </p>
841 <hr>
842 <a name="Importing-OpenPGP-Keys-Guile-Example"></a>
843 <div class="header">
844 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
846 </div>
847 <a name="Importing-OpenPGP-Keys-Guile-Example-1"></a>
848 <h3 class="section">4.3 Importing OpenPGP Keys Guile Example</h3>
849
850 <p>The following example provides a simple way of importing
851 &ldquo;ASCII-armored&rdquo; OpenPGP keys from files, using the
852 <code>import-openpgp-certificate</code> and <code>import-openpgp-private-key</code>
853 procedures.
854 </p>
855 <a name="index-openpgp_002dcertificate_002dformat_002fbase64"></a>
856 <a name="index-openpgp_002dcertificate_002dformat_002fraw"></a>
857
858 <div class="example">
859 <pre class="example">(use-modules (srfi srfi-4)
860              (gnutls))
861
862 (define (import-key-from-file import-proc file)
863   ;; Import OpenPGP key from FILE using IMPORT-PROC.
864
865   ;; Prepare a u8vector large enough to hold the raw
866   ;; key contents.
867   (let* ((size (stat:size (stat path)))
868          (raw  (make-u8vector size)))
869
870     ;; Fill in the u8vector with the contents of FILE.
871     (uniform-vector-read! raw (open-input-file file))
872
873     ;; Pass the u8vector to the import procedure.
874     (import-proc raw openpgp-certificate-format/base64)))
875
876
877 (define (import-public-key-from-file file)
878   (import-key-from-file import-openpgp-certificate file))
879
880 (define (import-private-key-from-file file)
881   (import-key-from-file import-openpgp-private-key file))
882 </pre></div>
883
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>).
888 </p>
889
890 <hr>
891 <a name="Guile-Reference"></a>
892 <div class="header">
893 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
895 </div>
896 <a name="Guile-Reference-1"></a>
897 <h2 class="chapter">5 Guile Reference</h2>
898
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>).
902 </p>
903
904 <dl>
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).
907 </p></dd></dl>
908
909 <dl>
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.
912 </p></dd></dl>
913
914 <dl>
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>.
917 </p></dd></dl>
918
919 <dl>
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.
922 </p></dd></dl>
923
924 <dl>
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.
927 </p></dd></dl>
928
929 <dl>
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>.
932 </p></dd></dl>
933
934 <dl>
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>.
937 </p></dd></dl>
938
939 <dl>
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.
942 </p></dd></dl>
943
944 <dl>
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>.
947 </p></dd></dl>
948
949 <dl>
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>.
952 </p></dd></dl>
953
954 <dl>
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>.
957 </p></dd></dl>
958
959 <dl>
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>.
962 </p></dd></dl>
963
964 <dl>
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).
967 </p></dd></dl>
968
969 <dl>
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>.
972 </p></dd></dl>
973
974 <dl>
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.
977 </p></dd></dl>
978
979 <dl>
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>.
982 </p></dd></dl>
983
984 <dl>
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>.
987 </p></dd></dl>
988
989 <dl>
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>.
992 </p></dd></dl>
993
994 <dl>
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>.
997 </p></dd></dl>
998
999 <dl>
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.
1002 </p></dd></dl>
1003
1004 <dl>
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>.
1007 </p></dd></dl>
1008
1009 <dl>
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.
1012 </p></dd></dl>
1013
1014 <dl>
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.
1017 </p></dd></dl>
1018
1019 <dl>
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).
1022 </p></dd></dl>
1023
1024 <dl>
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).
1027 </p></dd></dl>
1028
1029 <dl>
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>&rsquo;s issuer DN.  Return <code>#f</code> if no OID is available at <var>index</var>.
1032 </p></dd></dl>
1033
1034 <dl>
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>.
1037 </p></dd></dl>
1038
1039 <dl>
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>.
1042 </p></dd></dl>
1043
1044 <dl>
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>.
1047 </p></dd></dl>
1048
1049 <dl>
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).
1052 </p></dd></dl>
1053
1054 <dl>
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>.
1057 </p></dd></dl>
1058
1059 <dl>
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>.
1062 </p></dd></dl>
1063
1064 <dl>
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>.
1067 </p></dd></dl>
1068
1069 <dl>
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.
1072 </p></dd></dl>
1073
1074 <dl>
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.
1077 </p></dd></dl>
1078
1079 <dl>
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>.
1082 </p></dd></dl>
1083
1084 <dl>
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.
1087 </p></dd></dl>
1088
1089 <dl>
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.
1092 </p></dd></dl>
1093
1094 <dl>
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.
1097 </p></dd></dl>
1098
1099 <dl>
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.
1102 </p></dd></dl>
1103
1104 <dl>
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>.
1107 </p></dd></dl>
1108
1109 <dl>
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>.
1112 </p></dd></dl>
1113
1114 <dl>
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.
1117 </p></dd></dl>
1118
1119 <dl>
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.
1122 </p></dd></dl>
1123
1124 <dl>
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.
1127 </p></dd></dl>
1128
1129 <dl>
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.
1132 </p></dd></dl>
1133
1134 <dl>
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>.
1137 </p></dd></dl>
1138
1139 <dl>
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>.
1142 </p></dd></dl>
1143
1144 <dl>
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>.
1147 </p></dd></dl>
1148
1149 <dl>
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.
1152 </p></dd></dl>
1153
1154 <dl>
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.
1157 </p></dd></dl>
1158
1159 <dl>
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.
1162 </p></dd></dl>
1163
1164 <dl>
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.
1167 </p></dd></dl>
1168
1169 <dl>
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>.
1172 </p></dd></dl>
1173
1174 <dl>
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.
1177 </p></dd></dl>
1178
1179 <dl>
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.
1182 </p></dd></dl>
1183
1184 <dl>
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>.
1187 </p></dd></dl>
1188
1189 <dl>
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.
1192 </p></dd></dl>
1193
1194 <dl>
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.
1197 </p></dd></dl>
1198
1199 <dl>
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.
1202 </p></dd></dl>
1203
1204 <dl>
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>.
1207 </p></dd></dl>
1208
1209 <dl>
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>.
1212 </p></dd></dl>
1213
1214 <dl>
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>).
1217 </p></dd></dl>
1218
1219 <dl>
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.
1222 </p></dd></dl>
1223
1224 <dl>
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>.
1227 </p></dd></dl>
1228
1229 <dl>
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.
1232 </p></dd></dl>
1233
1234 <dl>
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>&rsquo;s credentials.
1237 </p></dd></dl>
1238
1239 <dl>
1240 <dt><a name="index-cipher_002dsuite_002d_003estring"></a>Scheme Procedure: <strong>cipher-suite-&gt;string</strong> <em>kx cipher mac</em></dt>
1241 <dd><p>Return the name of the given cipher suite.
1242 </p></dd></dl>
1243
1244 <dl>
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.
1247 </p>
1248 </dd></dl>
1249
1250 <dl>
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.
1253 </p></dd></dl>
1254
1255 <dl>
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>.
1258 </p></dd></dl>
1259
1260 <dl>
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.
1263 </p></dd></dl>
1264
1265 <dl>
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&rsquo;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.
1268 </p></dd></dl>
1269
1270 <dl>
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>.
1273 </p></dd></dl>
1274
1275 <dl>
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>.
1278 </p></dd></dl>
1279
1280 <dl>
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>.
1283 </p></dd></dl>
1284
1285 <dl>
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>.
1288 </p></dd></dl>
1289
1290 <dl>
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>&rsquo;s certificate type.
1293 </p></dd></dl>
1294
1295 <dl>
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>&rsquo;s compression method.
1298 </p></dd></dl>
1299
1300 <dl>
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>&rsquo;s MAC.
1303 </p></dd></dl>
1304
1305 <dl>
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>&rsquo;s kx.
1308 </p></dd></dl>
1309
1310 <dl>
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>&rsquo;s cipher.
1313 </p></dd></dl>
1314
1315 <dl>
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>.
1318 </p></dd></dl>
1319
1320 <dl>
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>.
1323 </p></dd></dl>
1324
1325 <dl>
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>.
1328 </p></dd></dl>
1329
1330 <dl>
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>.
1333 </p></dd></dl>
1334
1335 <dl>
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>.
1338 </p></dd></dl>
1339
1340 <dl>
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>.
1343 </p></dd></dl>
1344
1345 <dl>
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>&quot;1.7.2&quot;</code>.
1348 </p></dd></dl>
1349
1350 <dl>
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>.
1353 </p></dd></dl>
1354
1355 <dl>
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>.
1358 </p></dd></dl>
1359
1360 <dl>
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>.
1363 </p></dd></dl>
1364
1365 <dl>
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>.
1368 </p></dd></dl>
1369
1370 <dl>
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>.
1373 </p></dd></dl>
1374
1375 <dl>
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>.
1378 </p></dd></dl>
1379
1380 <dl>
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>.
1383 </p></dd></dl>
1384
1385 <dl>
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>.
1388 </p></dd></dl>
1389
1390 <dl>
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>.
1393 </p></dd></dl>
1394
1395 <dl>
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>.
1398 </p></dd></dl>
1399
1400 <dl>
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>.
1403 </p></dd></dl>
1404
1405 <dl>
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>.
1408 </p></dd></dl>
1409
1410 <dl>
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>.
1413 </p></dd></dl>
1414
1415 <dl>
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>.
1418 </p></dd></dl>
1419
1420 <dl>
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>.
1423 </p></dd></dl>
1424
1425 <dl>
1426 <dt><a name="index-openpgp_002dcertificate_002dformat_002d_003estring"></a>Scheme Procedure: <strong>openpgp-certificate-format-&gt;string</strong> <em>enumval</em></dt>
1427 <dd><p>Return a string describing <var>enumval</var>, a <code>openpgp-certificate-format</code> value.
1428 </p></dd></dl>
1429
1430 <dl>
1431 <dt><a name="index-error_002d_003estring-1"></a>Scheme Procedure: <strong>error-&gt;string</strong> <em>enumval</em></dt>
1432 <dd><p>Return a string describing <var>enumval</var>, a <code>error</code> value.
1433 </p></dd></dl>
1434
1435 <dl>
1436 <dt><a name="index-certificate_002dverify_002d_003estring"></a>Scheme Procedure: <strong>certificate-verify-&gt;string</strong> <em>enumval</em></dt>
1437 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-verify</code> value.
1438 </p></dd></dl>
1439
1440 <dl>
1441 <dt><a name="index-key_002dusage_002d_003estring"></a>Scheme Procedure: <strong>key-usage-&gt;string</strong> <em>enumval</em></dt>
1442 <dd><p>Return a string describing <var>enumval</var>, a <code>key-usage</code> value.
1443 </p></dd></dl>
1444
1445 <dl>
1446 <dt><a name="index-psk_002dkey_002dformat_002d_003estring"></a>Scheme Procedure: <strong>psk-key-format-&gt;string</strong> <em>enumval</em></dt>
1447 <dd><p>Return a string describing <var>enumval</var>, a <code>psk-key-format</code> value.
1448 </p></dd></dl>
1449
1450 <dl>
1451 <dt><a name="index-server_002dname_002dtype_002d_003estring"></a>Scheme Procedure: <strong>server-name-type-&gt;string</strong> <em>enumval</em></dt>
1452 <dd><p>Return a string describing <var>enumval</var>, a <code>server-name-type</code> value.
1453 </p></dd></dl>
1454
1455 <dl>
1456 <dt><a name="index-sign_002dalgorithm_002d_003estring"></a>Scheme Procedure: <strong>sign-algorithm-&gt;string</strong> <em>enumval</em></dt>
1457 <dd><p>Return a string describing <var>enumval</var>, a <code>sign-algorithm</code> value.
1458 </p></dd></dl>
1459
1460 <dl>
1461 <dt><a name="index-pk_002dalgorithm_002d_003estring"></a>Scheme Procedure: <strong>pk-algorithm-&gt;string</strong> <em>enumval</em></dt>
1462 <dd><p>Return a string describing <var>enumval</var>, a <code>pk-algorithm</code> value.
1463 </p></dd></dl>
1464
1465 <dl>
1466 <dt><a name="index-x509_002dsubject_002dalternative_002dname_002d_003estring"></a>Scheme Procedure: <strong>x509-subject-alternative-name-&gt;string</strong> <em>enumval</em></dt>
1467 <dd><p>Return a string describing <var>enumval</var>, a <code>x509-subject-alternative-name</code> value.
1468 </p></dd></dl>
1469
1470 <dl>
1471 <dt><a name="index-x509_002dcertificate_002dformat_002d_003estring"></a>Scheme Procedure: <strong>x509-certificate-format-&gt;string</strong> <em>enumval</em></dt>
1472 <dd><p>Return a string describing <var>enumval</var>, a <code>x509-certificate-format</code> value.
1473 </p></dd></dl>
1474
1475 <dl>
1476 <dt><a name="index-certificate_002dtype_002d_003estring"></a>Scheme Procedure: <strong>certificate-type-&gt;string</strong> <em>enumval</em></dt>
1477 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-type</code> value.
1478 </p></dd></dl>
1479
1480 <dl>
1481 <dt><a name="index-protocol_002d_003estring"></a>Scheme Procedure: <strong>protocol-&gt;string</strong> <em>enumval</em></dt>
1482 <dd><p>Return a string describing <var>enumval</var>, a <code>protocol</code> value.
1483 </p></dd></dl>
1484
1485 <dl>
1486 <dt><a name="index-close_002drequest_002d_003estring"></a>Scheme Procedure: <strong>close-request-&gt;string</strong> <em>enumval</em></dt>
1487 <dd><p>Return a string describing <var>enumval</var>, a <code>close-request</code> value.
1488 </p></dd></dl>
1489
1490 <dl>
1491 <dt><a name="index-certificate_002drequest_002d_003estring"></a>Scheme Procedure: <strong>certificate-request-&gt;string</strong> <em>enumval</em></dt>
1492 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-request</code> value.
1493 </p></dd></dl>
1494
1495 <dl>
1496 <dt><a name="index-certificate_002dstatus_002d_003estring"></a>Scheme Procedure: <strong>certificate-status-&gt;string</strong> <em>enumval</em></dt>
1497 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-status</code> value.
1498 </p></dd></dl>
1499
1500 <dl>
1501 <dt><a name="index-handshake_002ddescription_002d_003estring"></a>Scheme Procedure: <strong>handshake-description-&gt;string</strong> <em>enumval</em></dt>
1502 <dd><p>Return a string describing <var>enumval</var>, a <code>handshake-description</code> value.
1503 </p></dd></dl>
1504
1505 <dl>
1506 <dt><a name="index-alert_002ddescription_002d_003estring"></a>Scheme Procedure: <strong>alert-description-&gt;string</strong> <em>enumval</em></dt>
1507 <dd><p>Return a string describing <var>enumval</var>, a <code>alert-description</code> value.
1508 </p></dd></dl>
1509
1510 <dl>
1511 <dt><a name="index-alert_002dlevel_002d_003estring"></a>Scheme Procedure: <strong>alert-level-&gt;string</strong> <em>enumval</em></dt>
1512 <dd><p>Return a string describing <var>enumval</var>, a <code>alert-level</code> value.
1513 </p></dd></dl>
1514
1515 <dl>
1516 <dt><a name="index-connection_002dend_002d_003estring"></a>Scheme Procedure: <strong>connection-end-&gt;string</strong> <em>enumval</em></dt>
1517 <dd><p>Return a string describing <var>enumval</var>, a <code>connection-end</code> value.
1518 </p></dd></dl>
1519
1520 <dl>
1521 <dt><a name="index-compression_002dmethod_002d_003estring"></a>Scheme Procedure: <strong>compression-method-&gt;string</strong> <em>enumval</em></dt>
1522 <dd><p>Return a string describing <var>enumval</var>, a <code>compression-method</code> value.
1523 </p></dd></dl>
1524
1525 <dl>
1526 <dt><a name="index-digest_002d_003estring"></a>Scheme Procedure: <strong>digest-&gt;string</strong> <em>enumval</em></dt>
1527 <dd><p>Return a string describing <var>enumval</var>, a <code>digest</code> value.
1528 </p></dd></dl>
1529
1530 <dl>
1531 <dt><a name="index-mac_002d_003estring"></a>Scheme Procedure: <strong>mac-&gt;string</strong> <em>enumval</em></dt>
1532 <dd><p>Return a string describing <var>enumval</var>, a <code>mac</code> value.
1533 </p></dd></dl>
1534
1535 <dl>
1536 <dt><a name="index-credentials_002d_003estring"></a>Scheme Procedure: <strong>credentials-&gt;string</strong> <em>enumval</em></dt>
1537 <dd><p>Return a string describing <var>enumval</var>, a <code>credentials</code> value.
1538 </p></dd></dl>
1539
1540 <dl>
1541 <dt><a name="index-params_002d_003estring"></a>Scheme Procedure: <strong>params-&gt;string</strong> <em>enumval</em></dt>
1542 <dd><p>Return a string describing <var>enumval</var>, a <code>params</code> value.
1543 </p></dd></dl>
1544
1545 <dl>
1546 <dt><a name="index-kx_002d_003estring"></a>Scheme Procedure: <strong>kx-&gt;string</strong> <em>enumval</em></dt>
1547 <dd><p>Return a string describing <var>enumval</var>, a <code>kx</code> value.
1548 </p></dd></dl>
1549
1550 <dl>
1551 <dt><a name="index-cipher_002d_003estring"></a>Scheme Procedure: <strong>cipher-&gt;string</strong> <em>enumval</em></dt>
1552 <dd><p>Return a string describing <var>enumval</var>, a <code>cipher</code> value.
1553 </p></dd></dl>
1554
1555
1556 <hr>
1557 <a name="Copying-Information"></a>
1558 <div class="header">
1559 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
1561 </div>
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>
1565
1566 <a name="GNU-Free-Documentation-License"></a>
1567 <h3 class="heading">GNU Free Documentation License</h3>
1568
1569 <div align="center">Version 1.3, 3 November 2008
1570 </div>
1571
1572 <div class="display">
1573 <pre class="display">Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
1574 <a href="http://fsf.org/">http://fsf.org/</a>
1575
1576 Everyone is permitted to copy and distribute verbatim copies
1577 of this license document, but changing it is not allowed.
1578 </pre></div>
1579
1580 <ol>
1581 <li> PREAMBLE
1582
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.
1590 </p>
1591 <p>This License is a kind of &ldquo;copyleft&rdquo;, 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.
1595 </p>
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.
1603 </p>
1604 </li><li> APPLICABILITY AND DEFINITIONS
1605
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 &ldquo;Document&rdquo;, below,
1611 refers to any such manual or work.  Any member of the public is a
1612 licensee, and is addressed as &ldquo;you&rdquo;.  You accept the license if you
1613 copy, modify or distribute the work in a way requiring permission
1614 under copyright law.
1615 </p>
1616 <p>A &ldquo;Modified Version&rdquo; 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.
1619 </p>
1620 <p>A &ldquo;Secondary Section&rdquo; 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&rsquo;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
1629 them.
1630 </p>
1631 <p>The &ldquo;Invariant Sections&rdquo; 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.
1638 </p>
1639 <p>The &ldquo;Cover Texts&rdquo; 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.
1643 </p>
1644 <p>A &ldquo;Transparent&rdquo; 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 &ldquo;Transparent&rdquo; is called &ldquo;Opaque&rdquo;.
1656 </p>
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.
1669 </p>
1670 <p>The &ldquo;Title Page&rdquo; 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, &ldquo;Title Page&rdquo; means
1674 the text near the most prominent appearance of the work&rsquo;s title,
1675 preceding the beginning of the body of the text.
1676 </p>
1677 <p>The &ldquo;publisher&rdquo; means any person or entity that distributes copies
1678 of the Document to the public.
1679 </p>
1680 <p>A section &ldquo;Entitled XYZ&rdquo; 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 &ldquo;Acknowledgements&rdquo;,
1684 &ldquo;Dedications&rdquo;, &ldquo;Endorsements&rdquo;, or &ldquo;History&rdquo;.)  To &ldquo;Preserve the Title&rdquo;
1685 of such a section when you modify the Document means that it remains a
1686 section &ldquo;Entitled XYZ&rdquo; according to this definition.
1687 </p>
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.
1694 </p>
1695 </li><li> VERBATIM COPYING
1696
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.
1706 </p>
1707 <p>You may also lend copies, under the same conditions stated above, and
1708 you may publicly display copies.
1709 </p>
1710 </li><li> COPYING IN QUANTITY
1711
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&rsquo;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.
1724 </p>
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
1728 pages.
1729 </p>
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.
1742 </p>
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.
1746 </p>
1747 </li><li> MODIFICATIONS
1748
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:
1755 </p>
1756 <ol>
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.
1762
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.
1768
1769 </li><li> State on the Title page the name of the publisher of the
1770 Modified Version, as the publisher.
1771
1772 </li><li> Preserve all the copyright notices of the Document.
1773
1774 </li><li> Add an appropriate copyright notice for your modifications
1775 adjacent to the other copyright notices.
1776
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.
1780
1781 </li><li> Preserve in that license notice the full lists of Invariant Sections
1782 and required Cover Texts given in the Document&rsquo;s license notice.
1783
1784 </li><li> Include an unaltered copy of this License.
1785
1786 </li><li> Preserve the section Entitled &ldquo;History&rdquo;, 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 &ldquo;History&rdquo; 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.
1793
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 &ldquo;History&rdquo; 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.
1801
1802 </li><li> For any section Entitled &ldquo;Acknowledgements&rdquo; or &ldquo;Dedications&rdquo;, 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.
1806
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.
1810
1811 </li><li> Delete any section Entitled &ldquo;Endorsements&rdquo;.  Such a section
1812 may not be included in the Modified Version.
1813
1814 </li><li> Do not retitle any existing section to be Entitled &ldquo;Endorsements&rdquo; or
1815 to conflict in title with any Invariant Section.
1816
1817 </li><li> Preserve any Warranty Disclaimers.
1818 </li></ol>
1819
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&rsquo;s license notice.
1825 These titles must be distinct from any other section titles.
1826 </p>
1827 <p>You may add a section Entitled &ldquo;Endorsements&rdquo;, provided it contains
1828 nothing but endorsements of your Modified Version by various
1829 parties&mdash;for example, statements of peer review or that the text has
1830 been approved by an organization as the authoritative definition of a
1831 standard.
1832 </p>
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.
1842 </p>
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.
1846 </p>
1847 </li><li> COMBINING DOCUMENTS
1848
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.
1855 </p>
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.
1864 </p>
1865 <p>In the combination, you must combine any sections Entitled &ldquo;History&rdquo;
1866 in the various original documents, forming one section Entitled
1867 &ldquo;History&rdquo;; likewise combine any sections Entitled &ldquo;Acknowledgements&rdquo;,
1868 and any sections Entitled &ldquo;Dedications&rdquo;.  You must delete all
1869 sections Entitled &ldquo;Endorsements.&rdquo;
1870 </p>
1871 </li><li> COLLECTIONS OF DOCUMENTS
1872
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.
1878 </p>
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.
1883 </p>
1884 </li><li> AGGREGATION WITH INDEPENDENT WORKS
1885
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 &ldquo;aggregate&rdquo; if the copyright
1889 resulting from the compilation is not used to limit the legal rights
1890 of the compilation&rsquo;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.
1894 </p>
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&rsquo;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
1901 aggregate.
1902 </p>
1903 </li><li> TRANSLATION
1904
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.
1917 </p>
1918 <p>If a section in the Document is Entitled &ldquo;Acknowledgements&rdquo;,
1919 &ldquo;Dedications&rdquo;, or &ldquo;History&rdquo;, the requirement (section 4) to Preserve
1920 its Title (section 1) will typically require changing the actual
1921 title.
1922 </p>
1923 </li><li> TERMINATION
1924
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.
1929 </p>
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.
1936 </p>
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.
1943 </p>
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.
1949 </p>
1950 </li><li> FUTURE REVISIONS OF THIS LICENSE
1951
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>.
1957 </p>
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 &ldquo;or any later version&rdquo; 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&rsquo;s public statement of acceptance of a
1968 version permanently authorizes you to choose that version for the
1969 Document.
1970 </p>
1971 </li><li> RELICENSING
1972
1973 <p>&ldquo;Massive Multiauthor Collaboration Site&rdquo; (or &ldquo;MMC Site&rdquo;) 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 &ldquo;Massive Multiauthor Collaboration&rdquo; (or &ldquo;MMC&rdquo;) contained in the
1978 site means any set of copyrightable works thus published on the MMC
1979 site.
1980 </p>
1981 <p>&ldquo;CC-BY-SA&rdquo; 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.
1986 </p>
1987 <p>&ldquo;Incorporate&rdquo; means to publish or republish a Document, in whole or
1988 in part, as part of another Document.
1989 </p>
1990 <p>An MMC is &ldquo;eligible for relicensing&rdquo; 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.
1995 </p>
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.
1999 </p>
2000 </li></ol>
2001
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>
2004
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:
2008 </p>
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''.
2017 </pre></div>
2018
2019 <p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
2020 replace the &ldquo;with&hellip;Texts.&rdquo; line with this:
2021 </p>
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>.
2026 </pre></div>
2027
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
2030 situation.
2031 </p>
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.
2036 </p>
2037
2038
2039
2040 <hr>
2041 <a name="Procedure-Index"></a>
2042 <div class="header">
2043 <p>
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> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
2045 </div>
2046 <a name="Procedure-Index-1"></a>
2047 <h2 class="unnumbered">Procedure Index</h2>
2048
2049 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Procedure-Index_fn_letter-A"><b>A</b></a>
2050  &nbsp; 
2051 <a class="summary-letter" href="#Procedure-Index_fn_letter-B"><b>B</b></a>
2052  &nbsp; 
2053 <a class="summary-letter" href="#Procedure-Index_fn_letter-C"><b>C</b></a>
2054  &nbsp; 
2055 <a class="summary-letter" href="#Procedure-Index_fn_letter-D"><b>D</b></a>
2056  &nbsp; 
2057 <a class="summary-letter" href="#Procedure-Index_fn_letter-E"><b>E</b></a>
2058  &nbsp; 
2059 <a class="summary-letter" href="#Procedure-Index_fn_letter-G"><b>G</b></a>
2060  &nbsp; 
2061 <a class="summary-letter" href="#Procedure-Index_fn_letter-H"><b>H</b></a>
2062  &nbsp; 
2063 <a class="summary-letter" href="#Procedure-Index_fn_letter-I"><b>I</b></a>
2064  &nbsp; 
2065 <a class="summary-letter" href="#Procedure-Index_fn_letter-K"><b>K</b></a>
2066  &nbsp; 
2067 <a class="summary-letter" href="#Procedure-Index_fn_letter-M"><b>M</b></a>
2068  &nbsp; 
2069 <a class="summary-letter" href="#Procedure-Index_fn_letter-O"><b>O</b></a>
2070  &nbsp; 
2071 <a class="summary-letter" href="#Procedure-Index_fn_letter-P"><b>P</b></a>
2072  &nbsp; 
2073 <a class="summary-letter" href="#Procedure-Index_fn_letter-R"><b>R</b></a>
2074  &nbsp; 
2075 <a class="summary-letter" href="#Procedure-Index_fn_letter-S"><b>S</b></a>
2076  &nbsp; 
2077 <a class="summary-letter" href="#Procedure-Index_fn_letter-X"><b>X</b></a>
2078  &nbsp; 
2079 </td></tr></table>
2080 <table class="index-fn" border="0">
2081 <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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-&gt;string</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2251 <tr><td colspan="4"> <hr></td></tr>
2252 </table>
2253 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Procedure-Index_fn_letter-A"><b>A</b></a>
2254  &nbsp; 
2255 <a class="summary-letter" href="#Procedure-Index_fn_letter-B"><b>B</b></a>
2256  &nbsp; 
2257 <a class="summary-letter" href="#Procedure-Index_fn_letter-C"><b>C</b></a>
2258  &nbsp; 
2259 <a class="summary-letter" href="#Procedure-Index_fn_letter-D"><b>D</b></a>
2260  &nbsp; 
2261 <a class="summary-letter" href="#Procedure-Index_fn_letter-E"><b>E</b></a>
2262  &nbsp; 
2263 <a class="summary-letter" href="#Procedure-Index_fn_letter-G"><b>G</b></a>
2264  &nbsp; 
2265 <a class="summary-letter" href="#Procedure-Index_fn_letter-H"><b>H</b></a>
2266  &nbsp; 
2267 <a class="summary-letter" href="#Procedure-Index_fn_letter-I"><b>I</b></a>
2268  &nbsp; 
2269 <a class="summary-letter" href="#Procedure-Index_fn_letter-K"><b>K</b></a>
2270  &nbsp; 
2271 <a class="summary-letter" href="#Procedure-Index_fn_letter-M"><b>M</b></a>
2272  &nbsp; 
2273 <a class="summary-letter" href="#Procedure-Index_fn_letter-O"><b>O</b></a>
2274  &nbsp; 
2275 <a class="summary-letter" href="#Procedure-Index_fn_letter-P"><b>P</b></a>
2276  &nbsp; 
2277 <a class="summary-letter" href="#Procedure-Index_fn_letter-R"><b>R</b></a>
2278  &nbsp; 
2279 <a class="summary-letter" href="#Procedure-Index_fn_letter-S"><b>S</b></a>
2280  &nbsp; 
2281 <a class="summary-letter" href="#Procedure-Index_fn_letter-X"><b>X</b></a>
2282  &nbsp; 
2283 </td></tr></table>
2284
2285 <hr>
2286 <a name="Concept-Index"></a>
2287 <div class="header">
2288 <p>
2289 Previous: <a href="#Procedure-Index" accesskey="p" rel="prev">Procedure Index</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Procedure-Index" title="Index" rel="index">Index</a>]</p>
2290 </div>
2291 <a name="Concept-Index-1"></a>
2292 <h2 class="unnumbered">Concept Index</h2>
2293
2294 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Concept-Index_cp_letter-C"><b>C</b></a>
2295  &nbsp; 
2296 <a class="summary-letter" href="#Concept-Index_cp_letter-E"><b>E</b></a>
2297  &nbsp; 
2298 <a class="summary-letter" href="#Concept-Index_cp_letter-F"><b>F</b></a>
2299  &nbsp; 
2300 <a class="summary-letter" href="#Concept-Index_cp_letter-G"><b>G</b></a>
2301  &nbsp; 
2302 <a class="summary-letter" href="#Concept-Index_cp_letter-H"><b>H</b></a>
2303  &nbsp; 
2304 <a class="summary-letter" href="#Concept-Index_cp_letter-S"><b>S</b></a>
2305  &nbsp; 
2306 </td></tr></table>
2307 <table class="index-cp" border="0">
2308 <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>
2330 </table>
2331 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Concept-Index_cp_letter-C"><b>C</b></a>
2332  &nbsp; 
2333 <a class="summary-letter" href="#Concept-Index_cp_letter-E"><b>E</b></a>
2334  &nbsp; 
2335 <a class="summary-letter" href="#Concept-Index_cp_letter-F"><b>F</b></a>
2336  &nbsp; 
2337 <a class="summary-letter" href="#Concept-Index_cp_letter-G"><b>G</b></a>
2338  &nbsp; 
2339 <a class="summary-letter" href="#Concept-Index_cp_letter-H"><b>H</b></a>
2340  &nbsp; 
2341 <a class="summary-letter" href="#Concept-Index_cp_letter-S"><b>S</b></a>
2342  &nbsp; 
2343 </td></tr></table>
2344
2345 <hr>
2346
2347
2348
2349 </body>
2350 </html>