Revert "Merge branch 'upstream' into tizen"
[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 5 April 2014 for version
4 3.3.5 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 5.2, http://www.gnu.org/software/texinfo/ -->
15 <head>
16 <title>GnuTLS-Guile 3.3.5</title>
17
18 <meta name="description" content="GnuTLS-Guile 3.3.5">
19 <meta name="keywords" content="GnuTLS-Guile 3.3.5">
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.smallquotation {font-size: smaller}
32 div.display {margin-left: 3.2em}
33 div.example {margin-left: 3.2em}
34 div.indentedblock {margin-left: 3.2em}
35 div.lisp {margin-left: 3.2em}
36 div.smalldisplay {margin-left: 3.2em}
37 div.smallexample {margin-left: 3.2em}
38 div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
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.nocodebreak {white-space:nowrap}
50 span.nolinebreak {white-space:nowrap}
51 span.roman {font-family:serif; font-weight:normal}
52 span.sansserif {font-family:sans-serif; font-weight:normal}
53 ul.no-bullet {list-style: none}
54 body { 
55         margin: 2%;
56         padding: 0 5%;
57         background: #ffffff;
58 }
59 h1,h2,h3,h4,h5 {
60     font-weight: bold;
61     padding: 5px 5px 5px 5px;
62     background-color: #c2e0ff;
63     color: #336699;
64 }
65 h1 {
66     padding: 2em 2em 2em 5%;
67     color: white;
68     background: #336699;
69     text-align: center;
70     letter-spacing: 3px;
71 }
72 h2 { text-decoration: underline; }
73 pre {
74   margin: 0 5%;
75   padding: 0.5em;
76 }
77 pre.example,pre.verbatim {
78   padding-bottom: 1em;
79
80   border: solid #c2e0ff;
81   background: #f0faff;
82   border-width: 1px 1px 1px 5px;
83   margin: 1em auto;
84   width: 90%;
85 }
86
87 div.node {
88   margin: 0 -5% 0 -2%;
89   padding: 0.5em 0.5em;
90   margin-top: 0.5em;
91   margin-bottom: 0.5em;
92   font-weight: bold;
93 }
94 dd, li {
95   padding-top: 0.1em;
96   padding-bottom: 0.1em;
97 }
98 div.float {
99
100   margin-bottom: 0.5em;
101   text-align: center;
102 }
103
104 table {
105   text-align: left;
106   margin-left:auto;
107   margin-right:auto;
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" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
155 <h1 class="settitle" align="center">GnuTLS-Guile 3.3.5</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 5 April 2014 for version
202 3.3.5 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 </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.
229 </td></tr>
230 <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">
231 </td></tr>
232 <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">
233 </td></tr>
234 </table>
235
236 <hr>
237 <a name="Preface"></a>
238 <div class="header">
239 <p>
240 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>
241 </div>
242 <a name="Preface-1"></a>
243 <h2 class="chapter">1 Preface</h2>
244
245 <p>This manual describes the <a href="http://www.gnu.org/software/guile/">GNU Guile</a> Scheme programming interface to GnuTLS.  The reader is
246 assumed to have basic knowledge of the protocol and library.  Details
247 missing from this chapter may be found in Function reference,
248 of the C API reference.
249 </p>
250 <p>At this stage, not all the C functions are available from Scheme, but
251 a large subset thereof is available.
252 </p>
253 <hr>
254 <a name="Guile-Preparations"></a>
255 <div class="header">
256 <p>
257 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>
258 </div>
259 <a name="Guile-Preparations-1"></a>
260 <h2 class="chapter">2 Guile Preparations</h2>
261
262 <p>The GnuTLS Guile bindings are available for both the 1.8 and 2.0 stable
263 series of Guile.
264 </p>
265 <p>By default they are installed under the GnuTLS installation directory,
266 typically <samp>/usr/local/share/guile/site/</samp>).  Normally Guile
267 will not find the module there without help.  You may experience
268 something like this:
269 </p>
270 <div class="example">
271 <pre class="example">$ guile
272 guile&gt; (use-modules (gnutls))
273 &lt;unnamed port&gt;: no code for module (gnutls)
274 guile&gt;
275 </pre></div>
276
277 <p>There are two ways to solve this.  The first is to make sure that when
278 building GnuTLS, the Guile bindings will be installed in the same
279 place where Guile looks.  You may do this by using the
280 <code>--with-guile-site-dir</code> parameter as follows:
281 </p>
282 <div class="example">
283 <pre class="example">$ ./configure --with-guile-site-dir=no
284 </pre></div>
285
286 <p>This will instruct GnuTLS to attempt to install the Guile bindings
287 where Guile will look for them.  It will use <code>guile-config info
288 pkgdatadir</code> to learn the path to use.
289 </p>
290 <p>If Guile was installed into <code>/usr</code>, you may also install GnuTLS
291 using the same prefix:
292 </p>
293 <div class="example">
294 <pre class="example">$ ./configure --prefix=/usr
295 </pre></div>
296
297 <p>If you want to specify the path to install the Guile bindings you can
298 also specify the path directly:
299 </p>
300 <div class="example">
301 <pre class="example">$ ./configure --with-guile-site-dir=/opt/guile/share/guile/site
302 </pre></div>
303
304 <p>The second solution requires some more work but may be easier to use
305 if you do not have system administrator rights to your machine.  You
306 need to instruct Guile so that it finds the GnuTLS Guile bindings.
307 Either use the <code>GUILE_LOAD_PATH</code> environment variable as follows:
308 </p>
309 <div class="example">
310 <pre class="example">$ GUILE_LOAD_PATH=&quot;/usr/local/share/guile/site:$GUILE_LOAD_PATH&quot; guile
311 guile&gt; (use-modules (gnutls))
312 guile&gt;
313 </pre></div>
314
315 <p>Alternatively, you can modify Guile&rsquo;s <code>%load-path</code> variable
316 (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
317 Reference Manual</cite>).
318 </p>
319 <p>At this point, you might get an error regarding
320 <samp>libguile-gnutls-v-0</samp> similar to:
321 </p>
322 <div class="example">
323 <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;):
324 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;
325 </pre></div>
326
327 <p>In this case, you will need to modify the run-time linker path, for
328 example as follows:
329 </p>
330 <div class="example">
331 <pre class="example">$ LD_LIBRARY_PATH=/usr/local/lib GUILE_LOAD_PATH=/usr/local/share/guile/site guile
332 guile&gt; (use-modules (gnutls))
333 guile&gt;
334 </pre></div>
335
336 <p>To check that you got the intended GnuTLS library version, you may
337 print the version number of the loaded library as follows:
338 </p>
339 <div class="example">
340 <pre class="example">$ guile
341 guile&gt; (use-modules (gnutls))
342 guile&gt; (gnutls-version)
343 &quot;3.3.5&quot;
344 guile&gt; 
345 </pre></div>
346
347
348 <hr>
349 <a name="Guile-API-Conventions"></a>
350 <div class="header">
351 <p>
352 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>
353 </div>
354 <a name="Guile-API-Conventions-1"></a>
355 <h2 class="chapter">3 Guile API Conventions</h2>
356
357 <p>This chapter details the conventions used by Guile API, as well as
358 specificities of the mapping of the C API to Scheme.
359 </p>
360 <table class="menu" border="0" cellspacing="0">
361 <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.
362 </td></tr>
363 <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.
364 </td></tr>
365 <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.
366 </td></tr>
367 <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.
368 </td></tr>
369 <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.
370 </td></tr>
371 </table>
372
373 <hr>
374 <a name="Enumerates-and-Constants"></a>
375 <div class="header">
376 <p>
377 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>
378 </div>
379 <a name="Enumerates-and-Constants-1"></a>
380 <h3 class="section">3.1 Enumerates and Constants</h3>
381
382 <a name="index-enumerate"></a>
383 <a name="index-constant"></a>
384
385 <p>Lots of enumerates and constants are used in the GnuTLS C API.  For
386 each C enumerate type, a disjoint Scheme type is used&mdash;thus,
387 enumerate values and constants are not represented by Scheme symbols
388 nor by integers.  This makes it impossible to use an enumerate value
389 of the wrong type on the Scheme side: such errors are automatically
390 detected by type-checking.
391 </p>
392 <p>The enumerate values are bound to variables exported by the
393 <code>(gnutls)</code> module.  These variables
394 are named according to the following convention:
395 </p>
396 <ul>
397 <li> All variable names are lower-case; the underscore <code>_</code>
398 character used in the C API is replaced by hyphen <code>-</code>.
399 </li><li> All variable names are prepended by the name of the enumerate
400 type and the slash <code>/</code> character.
401 </li><li> In some cases, the variable name is made more explicit than the
402 one of the C API, e.g., by avoid abbreviations.
403 </li></ul>
404
405 <p>Consider for instance this C-side enumerate:
406 </p>
407 <div class="example">
408 <pre class="example">typedef enum
409 {
410   GNUTLS_CRD_CERTIFICATE = 1,
411   GNUTLS_CRD_ANON,
412   GNUTLS_CRD_SRP,
413   GNUTLS_CRD_PSK
414 } gnutls_credentials_type_t;
415 </pre></div>
416
417 <p>The corresponding Scheme values are bound to the following variables
418 exported by the <code>(gnutls)</code> module:
419 </p>
420 <div class="example">
421 <pre class="example">credentials/certificate
422 credentials/anonymous
423 credentials/srp
424 credentials/psk
425 </pre></div>
426
427 <p>Hopefully, most variable names can be deduced from this convention.
428 </p>
429 <p>Scheme-side &ldquo;enumerate&rdquo; values can be compared using <code>eq?</code>
430 (see <a href="http://www.gnu.org/software/guile/manual/guile.html#Equality">equality predicates</a> in <cite>The GNU Guile Reference
431 Manual</cite>).  Consider the following example:
432 </p>
433 <a name="index-session_002dcipher"></a>
434
435 <div class="example">
436 <pre class="example">(let ((session (make-session connection-end/client)))
437
438   ;;
439   ;; ...
440   ;;
441
442   ;; Check the ciphering algorithm currently used by SESSION.
443   (if (eq? cipher/arcfour (session-cipher session))
444       (format #t &quot;We're using the ARCFOUR algorithm&quot;)))
445 </pre></div>
446
447 <p>In addition, all enumerate values can be converted to a human-readable
448 string, in a type-specific way.  For instance, <code>(cipher-&gt;string
449 cipher/arcfour)</code> yields <code>&quot;ARCFOUR 128&quot;</code>, while
450 <code>(key-usage-&gt;string key-usage/digital-signature)</code> yields
451 <code>&quot;digital-signature&quot;</code>.  Note that these strings may not be
452 sufficient for use in a user interface since they are fairly concise
453 and not internationalized.
454 </p>
455
456 <hr>
457 <a name="Procedure-Names"></a>
458 <div class="header">
459 <p>
460 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>
461 </div>
462 <a name="Procedure-Names-1"></a>
463 <h3 class="section">3.2 Procedure Names</h3>
464
465 <p>Unlike C functions in GnuTLS, the corresponding Scheme procedures are
466 named in a way that is close to natural English.  Abbreviations are
467 also avoided.  For instance, the Scheme procedure corresponding to
468 <code>gnutls_certificate_set_dh_params</code> is named
469 <code>set-certificate-credentials-dh-parameters!</code>.  The <code>gnutls_</code>
470 prefix is always omitted from variable names since a similar effect
471 can be achieved using Guile&rsquo;s nifty binding renaming facilities,
472 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
473 Guile Reference Manual</cite>).
474 </p>
475 <p>Often Scheme procedure names differ from C function names in a way
476 that makes it clearer what objects they operate on.  For example, the
477 Scheme procedure named <code>set-session-transport-port!</code> corresponds
478 to <code>gnutls_transport_set_ptr</code>, making it clear that this
479 procedure applies to session.
480 </p>
481 <hr>
482 <a name="Representation-of-Binary-Data"></a>
483 <div class="header">
484 <p>
485 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>
486 </div>
487 <a name="Representation-of-Binary-Data-1"></a>
488 <h3 class="section">3.3 Representation of Binary Data</h3>
489
490 <p>Many procedures operate on binary data.  For instance,
491 <code>pkcs3-import-dh-parameters</code> expects binary data as input and,
492 similarly, procedures like <code>pkcs1-export-rsa-parameters</code> return
493 binary data.
494 </p>
495 <a name="index-SRFI_002d4"></a>
496 <a name="index-homogeneous-vector"></a>
497
498 <p>Binary data is represented on the Scheme side using SRFI-4 homogeneous
499 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>).
500 Although any type of homogeneous vector may be used, <code>u8vector</code>s
501 (i.e., vectors of bytes) are highly recommended.
502 </p>
503 <p>As an example, generating and then exporting RSA parameters in the PEM
504 format can be done as follows:
505 </p>
506 <a name="index-make_002drsa_002dparameters"></a>
507 <a name="index-pkcs1_002dexport_002drsa_002dparameters"></a>
508 <a name="index-x509_002dcertificate_002dformat_002fpem"></a>
509
510 <div class="example">
511 <pre class="example">(let* ((rsa-params (make-rsa-parameters 1024))
512        (raw-data
513         (pkcs1-export-rsa-parameters rsa-params
514                                      x509-certificate-format/pem)))
515   (uniform-vector-write raw-data (open-output-file &quot;some-file.pem&quot;)))
516 </pre></div>
517
518 <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>.
519 </p>
520
521 <hr>
522 <a name="Input-and-Output"></a>
523 <div class="header">
524 <p>
525 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>
526 </div>
527 <a name="Input-and-Output-1"></a>
528 <h3 class="section">3.4 Input and Output</h3>
529
530 <a name="index-set_002dsession_002dtransport_002dport_0021"></a>
531 <a name="index-set_002dsession_002dtransport_002dfd_0021"></a>
532
533 <p>The underlying transport of a TLS session can be any Scheme
534 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
535 Guile Reference Manual</cite>).  This has to be specified using
536 <code>set-session-transport-port!</code>.
537 </p>
538 <p>However, for better performance, a raw file descriptor can be
539 specified, using <code>set-session-transport-fd!</code>.  For instance, if
540 the transport layer is a socket port over an OS-provided socket, you
541 can use the <code>port-&gt;fdes</code> or <code>fileno</code> procedure to obtain the
542 underlying file descriptor and pass it to
543 <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
544 Manual</cite>).  This would work as follows:
545 </p>
546 <div class="example">
547 <pre class="example">(let ((socket (socket PF_INET SOCK_STREAM 0))
548       (session (make-session connection-end/client)))
549
550   ;;
551   ;; Establish a TCP connection...
552   ;;
553
554   ;; Use the file descriptor that underlies SOCKET.
555   (set-session-transport-fd! session (fileno socket)))
556 </pre></div>
557
558 <a name="index-session_002drecord_002dport"></a>
559
560 <p>Once a TLS session is established, data can be communicated through it
561 (i.e., <em>via</em> the TLS record layer) using the port returned by
562 <code>session-record-port</code>:
563 </p>
564 <div class="example">
565 <pre class="example">(let ((session (make-session connection-end/client)))
566
567   ;;
568   ;; Initialize the various parameters of SESSION, set up
569   ;; a network connection, etc...
570   ;;
571
572   (let ((i/o (session-record-port session)))
573     (write &quot;Hello peer!&quot; i/o)
574     (let ((greetings (read i/o)))
575
576       ;; ...
577
578       (bye session close-request/rdwr))))
579 </pre></div>
580
581 <a name="index-record_002dsend"></a>
582 <a name="index-record_002dreceive_0021"></a>
583
584 <p>A lower-level I/O API is provided by <code>record-send</code> and
585 <code>record-receive!</code> which take an SRFI-4 vector to represent the
586 data sent or received.  While it might improve performance, it is much
587 less convenient than the above and should rarely be needed.
588 </p>
589
590 <hr>
591 <a name="Exception-Handling"></a>
592 <div class="header">
593 <p>
594 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>
595 </div>
596 <a name="Exception-Handling-1"></a>
597 <h3 class="section">3.5 Exception Handling</h3>
598
599 <a name="index-exceptions"></a>
600 <a name="index-errors"></a>
601 <a name="index-gnutls_002derror"></a>
602 <a name="index-error_002d_003estring"></a>
603
604 <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
605 time a GnuTLS function returns an error, an exception with key
606 <code>gnutls-error</code> is raised.  The additional arguments that are
607 thrown include an error code and the name of the GnuTLS procedure that
608 raised the exception.  The error code is pretty much like an enumerate
609 value: it is one of the <code>error/</code> variables exported by the
610 <code>(gnutls)</code> module (see <a href="#Enumerates-and-Constants">Enumerates and Constants</a>).  Exceptions
611 can be turned into error messages using the <code>error-&gt;string</code>
612 procedure.
613 </p>
614 <p>The following examples illustrates how GnuTLS exceptions can be
615 handled:
616 </p>
617 <div class="example">
618 <pre class="example">(let ((session (make-session connection-end/server)))
619
620   ;;
621   ;; ...
622   ;;
623
624   (catch 'gnutls-error
625     (lambda ()
626       (handshake session))
627     (lambda (key err function . currently-unused)
628       (format (current-error-port)
629               &quot;a GnuTLS error was raised by `~a': ~a~%&quot;
630               function (error-&gt;string err)))))
631 </pre></div>
632
633 <p>Again, error values can be compared using <code>eq?</code>:
634 </p>
635 <div class="example">
636 <pre class="example">    ;; `gnutls-error' handler.
637     (lambda (key err function . currently-unused)
638       (if (eq? err error/fatal-alert-received)
639           (format (current-error-port)
640                   &quot;a fatal alert was caught!~%&quot;)
641           (format (current-error-port)
642                   &quot;something bad happened: ~a~%&quot;
643                   (error-&gt;string err))))
644 </pre></div>
645
646 <p>Note that the <code>catch</code> handler is currently passed only 3
647 arguments but future versions might provide it with additional
648 arguments.  Thus, it must be prepared to handle more than 3 arguments,
649 as in this example.
650 </p>
651
652 <hr>
653 <a name="Guile-Examples"></a>
654 <div class="header">
655 <p>
656 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>
657 </div>
658 <a name="Guile-Examples-1"></a>
659 <h2 class="chapter">4 Guile Examples</h2>
660
661 <p>This chapter provides examples that illustrate common use cases.
662 </p>
663 <table class="menu" border="0" cellspacing="0">
664 <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.
665 </td></tr>
666 <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.
667 </td></tr>
668 <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.
669 </td></tr>
670 </table>
671
672 <hr>
673 <a name="Anonymous-Authentication-Guile-Example"></a>
674 <div class="header">
675 <p>
676 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>
677 </div>
678 <a name="Anonymous-Authentication-Guile-Example-1"></a>
679 <h3 class="section">4.1 Anonymous Authentication Guile Example</h3>
680
681 <p><em>Anonymous authentication</em> is very easy to use.  No certificates
682 are needed by the communicating parties.  Yet, it allows them to
683 benefit from end-to-end encryption and integrity checks.
684 </p>
685 <p>The client-side code would look like this (assuming <var>some-socket</var>
686 is bound to an open socket port):
687 </p>
688 <a name="index-connection_002dend_002fclient"></a>
689 <a name="index-kx_002fanon_002ddh"></a>
690 <a name="index-close_002drequest_002frdwr"></a>
691
692 <div class="example">
693 <pre class="example">;; Client-side.
694
695 (let ((client (make-session connection-end/client)))
696   ;; Use the default settings.
697   (set-session-default-priority! client)
698
699   ;; Don't use certificate-based authentication.
700   (set-session-certificate-type-priority! client '())
701
702   ;; Request the &quot;anonymous Diffie-Hellman&quot; key exchange method.
703   (set-session-kx-priority! client (list kx/anon-dh))
704
705   ;; Specify the underlying socket.
706   (set-session-transport-fd! client (fileno some-socket))
707
708   ;; Create anonymous credentials.
709   (set-session-credentials! client
710                             (make-anonymous-client-credentials))
711
712   ;; Perform the TLS handshake with the server.
713   (handshake client)
714
715   ;; Send data over the TLS record layer.
716   (write &quot;hello, world!&quot; (session-record-port client))
717
718   ;; Terminate the TLS session.
719   (bye client close-request/rdwr))
720 </pre></div>
721
722 <p>The corresponding server would look like this (again, assuming
723 <var>some-socket</var> is bound to a socket port):
724 </p>
725 <a name="index-connection_002dend_002fserver"></a>
726
727 <div class="example">
728 <pre class="example">;; Server-side.
729
730 (let ((server (make-session connection-end/server)))
731   (set-session-default-priority! server)
732   (set-session-certificate-type-priority! server '())
733   (set-session-kx-priority! server (list kx/anon-dh))
734
735   ;; Specify the underlying transport socket.
736   (set-session-transport-fd! server (fileno some-socket))
737
738   ;; Create anonymous credentials.
739   (let ((cred (make-anonymous-server-credentials))
740         (dh-params (make-dh-parameters 1024)))
741     ;; Note: DH parameter generation can take some time.
742     (set-anonymous-server-dh-parameters! cred dh-params)
743     (set-session-credentials! server cred))
744
745   ;; Perform the TLS handshake with the client.
746   (handshake server)
747
748   ;; Receive data over the TLS record layer.
749   (let ((message (read (session-record-port server))))
750     (format #t &quot;received the following message: ~a~%&quot;
751             message)
752
753     (bye server close-request/rdwr)))
754 </pre></div>
755
756 <p>This is it!
757 </p>
758
759 <hr>
760 <a name="OpenPGP-Authentication-Guile-Example"></a>
761 <div class="header">
762 <p>
763 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>
764 </div>
765 <a name="OpenPGP-Authentication-Guile-Example-1"></a>
766 <h3 class="section">4.2 OpenPGP Authentication Guile Example</h3>
767
768 <p>GnuTLS allows users to authenticate using OpenPGP certificates.
769 Using OpenPGP-based authentication is not more complicated than using
770 anonymous authentication.  It requires a bit of extra work, though, to
771 import the OpenPGP public and private key of the client/server.  Key
772 import is omitted here and is left as an exercise to the reader
773 (see <a href="#Importing-OpenPGP-Keys-Guile-Example">Importing OpenPGP Keys Guile Example</a>).
774 </p>
775 <p>Assuming <var>some-socket</var> is bound to an open socket port and
776 <var>pub</var> and <var>sec</var> are bound to the client&rsquo;s OpenPGP public and
777 secret key, respectively, client-side code would look like this:
778 </p>
779 <a name="index-certificate_002dtype_002fopenpgp"></a>
780
781 <div class="example">
782 <pre class="example">;; Client-side.
783
784 (define %certs (list certificate-type/openpgp))
785
786 (let ((client (make-session connection-end/client))
787       (cred   (make-certificate-credentials)))
788   (set-session-default-priority! client)
789
790   ;; Choose OpenPGP certificates.
791   (set-session-certificate-type-priority! client %certs)
792
793   ;; Prepare appropriate client credentials.
794   (set-certificate-credentials-openpgp-keys! cred pub sec)
795   (set-session-credentials! client cred)
796
797   ;; Specify the underlying transport socket.
798   (set-session-transport-fd! client (fileno some-socket))
799
800   (handshake client)
801   (write &quot;hello, world!&quot; (session-record-port client))
802   (bye client close-request/rdwr))
803 </pre></div>
804
805 <p>Similarly, server-side code would be along these lines:
806 </p>
807 <div class="example">
808 <pre class="example">;; Server-side.
809
810 (define %certs (list certificate-type/openpgp))
811
812 (let ((server (make-session connection-end/server))
813       (rsa    (make-rsa-parameters 1024))
814       (dh     (make-dh-parameters 1024)))
815   (set-session-default-priority! server)
816
817   ;; Choose OpenPGP certificates.
818   (set-session-certificate-type-priority! server %certs)
819
820   (let ((cred (make-certificate-credentials)))
821     ;; Prepare credentials with RSA and Diffie-Hellman parameters.
822     (set-certificate-credentials-dh-parameters! cred dh)
823     (set-certificate-credentials-rsa-export-parameters! cred rsa)
824     (set-certificate-credentials-openpgp-keys! cred pub sec)
825     (set-session-credentials! server cred))
826
827   (set-session-transport-fd! server (fileno some-socket))
828
829   (handshake server)
830   (let ((msg (read (session-record-port server))))
831     (format #t &quot;received: ~a~%&quot; msg)
832
833     (bye server close-request/rdwr)))
834 </pre></div>
835
836 <p>In practice, generating RSA parameters (and Diffie-Hellman parameters)
837 can time a long time.  Thus, you may want to generate them once and
838 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>).
839 </p>
840 <hr>
841 <a name="Importing-OpenPGP-Keys-Guile-Example"></a>
842 <div class="header">
843 <p>
844 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>
845 </div>
846 <a name="Importing-OpenPGP-Keys-Guile-Example-1"></a>
847 <h3 class="section">4.3 Importing OpenPGP Keys Guile Example</h3>
848
849 <p>The following example provides a simple way of importing
850 &ldquo;ASCII-armored&rdquo; OpenPGP keys from files, using the
851 <code>import-openpgp-certificate</code> and <code>import-openpgp-private-key</code>
852 procedures.
853 </p>
854 <a name="index-openpgp_002dcertificate_002dformat_002fbase64"></a>
855 <a name="index-openpgp_002dcertificate_002dformat_002fraw"></a>
856
857 <div class="example">
858 <pre class="example">(use-modules (srfi srfi-4)
859              (gnutls))
860
861 (define (import-key-from-file import-proc file)
862   ;; Import OpenPGP key from FILE using IMPORT-PROC.
863
864   ;; Prepare a u8vector large enough to hold the raw
865   ;; key contents.
866   (let* ((size (stat:size (stat path)))
867          (raw  (make-u8vector size)))
868
869     ;; Fill in the u8vector with the contents of FILE.
870     (uniform-vector-read! raw (open-input-file file))
871
872     ;; Pass the u8vector to the import procedure.
873     (import-proc raw openpgp-certificate-format/base64)))
874
875
876 (define (import-public-key-from-file file)
877   (import-key-from-file import-openpgp-certificate file))
878
879 (define (import-private-key-from-file file)
880   (import-key-from-file import-openpgp-private-key file))
881 </pre></div>
882
883 <p>The procedures <code>import-public-key-from-file</code> and
884 <code>import-private-key-from-file</code> can be passed a file name.  They
885 return an OpenPGP public key and private key object, respectively
886 (see <a href="#Guile-Reference">OpenPGP key objects</a>).
887 </p>
888
889 <hr>
890 <a name="Guile-Reference"></a>
891 <div class="header">
892 <p>
893 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>
894 </div>
895 <a name="Guile-Reference-1"></a>
896 <h2 class="chapter">5 Guile Reference</h2>
897
898 <p>This chapter lists the GnuTLS Scheme procedures exported by the
899 <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
900 GNU Guile Reference Manual</cite>).
901 </p>
902
903 <dl>
904 <dt><a name="index-set_002dlog_002dlevel_0021"></a>Scheme Procedure: <strong>set-log-level!</strong> <em>level</em></dt>
905 <dd><p>Enable GnuTLS logging up to <var>level</var> (an integer).
906 </p></dd></dl>
907
908 <dl>
909 <dt><a name="index-set_002dlog_002dprocedure_0021"></a>Scheme Procedure: <strong>set-log-procedure!</strong> <em>proc</em></dt>
910 <dd><p>Use <var>proc</var> (a two-argument procedure) as the global GnuTLS log procedure.
911 </p></dd></dl>
912
913 <dl>
914 <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>
915 <dd><p>Use certificate <var>pub</var> and secret key <var>sec</var> in certificate credentials <var>cred</var>.
916 </p></dd></dl>
917
918 <dl>
919 <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>
920 <dd><p>Return <code>#f</code> if key ID <var>id</var> is in <var>keyring</var>, <code>#f</code> otherwise.
921 </p></dd></dl>
922
923 <dl>
924 <dt><a name="index-import_002dopenpgp_002dkeyring"></a>Scheme Procedure: <strong>import-openpgp-keyring</strong> <em>data format</em></dt>
925 <dd><p>Import <var>data</var> (a u8vector) according to <var>format</var> and return the imported keyring.
926 </p></dd></dl>
927
928 <dl>
929 <dt><a name="index-openpgp_002dcertificate_002dusage"></a>Scheme Procedure: <strong>openpgp-certificate-usage</strong> <em>key</em></dt>
930 <dd><p>Return a list of values denoting the key usage of <var>key</var>.
931 </p></dd></dl>
932
933 <dl>
934 <dt><a name="index-openpgp_002dcertificate_002dversion"></a>Scheme Procedure: <strong>openpgp-certificate-version</strong> <em>key</em></dt>
935 <dd><p>Return the version of the OpenPGP message format (RFC2440) honored by <var>key</var>.
936 </p></dd></dl>
937
938 <dl>
939 <dt><a name="index-openpgp_002dcertificate_002dalgorithm"></a>Scheme Procedure: <strong>openpgp-certificate-algorithm</strong> <em>key</em></dt>
940 <dd><p>Return two values: the certificate algorithm used by <var>key</var> and the number of bits used.
941 </p></dd></dl>
942
943 <dl>
944 <dt><a name="index-openpgp_002dcertificate_002dnames"></a>Scheme Procedure: <strong>openpgp-certificate-names</strong> <em>key</em></dt>
945 <dd><p>Return the list of names for <var>key</var>.
946 </p></dd></dl>
947
948 <dl>
949 <dt><a name="index-openpgp_002dcertificate_002dname"></a>Scheme Procedure: <strong>openpgp-certificate-name</strong> <em>key index</em></dt>
950 <dd><p>Return the <var>index</var>th name of <var>key</var>.
951 </p></dd></dl>
952
953 <dl>
954 <dt><a name="index-openpgp_002dcertificate_002dfingerprint"></a>Scheme Procedure: <strong>openpgp-certificate-fingerprint</strong> <em>key</em></dt>
955 <dd><p>Return a new u8vector denoting the fingerprint of <var>key</var>.
956 </p></dd></dl>
957
958 <dl>
959 <dt><a name="index-openpgp_002dcertificate_002dfingerprint_0021"></a>Scheme Procedure: <strong>openpgp-certificate-fingerprint!</strong> <em>key fpr</em></dt>
960 <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>.
961 </p></dd></dl>
962
963 <dl>
964 <dt><a name="index-openpgp_002dcertificate_002did_0021"></a>Scheme Procedure: <strong>openpgp-certificate-id!</strong> <em>key id</em></dt>
965 <dd><p>Store the ID (an 8 byte sequence) of certificate <var>key</var> in <var>id</var> (a u8vector).
966 </p></dd></dl>
967
968 <dl>
969 <dt><a name="index-openpgp_002dcertificate_002did"></a>Scheme Procedure: <strong>openpgp-certificate-id</strong> <em>key</em></dt>
970 <dd><p>Return the ID (an 8-element u8vector) of certificate <var>key</var>.
971 </p></dd></dl>
972
973 <dl>
974 <dt><a name="index-import_002dopenpgp_002dprivate_002dkey"></a>Scheme Procedure: <strong>import-openpgp-private-key</strong> <em>data format [pass]</em></dt>
975 <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.
976 </p></dd></dl>
977
978 <dl>
979 <dt><a name="index-import_002dopenpgp_002dcertificate"></a>Scheme Procedure: <strong>import-openpgp-certificate</strong> <em>data format</em></dt>
980 <dd><p>Return a new OpenPGP certificate object resulting from the import of <var>data</var> (a uniform array) according to <var>format</var>.
981 </p></dd></dl>
982
983 <dl>
984 <dt><a name="index-x509_002dcertificate_002dsubject_002dalternative_002dname"></a>Scheme Procedure: <strong>x509-certificate-subject-alternative-name</strong> <em>cert index</em></dt>
985 <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>.
986 </p></dd></dl>
987
988 <dl>
989 <dt><a name="index-x509_002dcertificate_002dsubject_002dkey_002did"></a>Scheme Procedure: <strong>x509-certificate-subject-key-id</strong> <em>cert</em></dt>
990 <dd><p>Return the subject key ID (a u8vector) for <var>cert</var>.
991 </p></dd></dl>
992
993 <dl>
994 <dt><a name="index-x509_002dcertificate_002dauthority_002dkey_002did"></a>Scheme Procedure: <strong>x509-certificate-authority-key-id</strong> <em>cert</em></dt>
995 <dd><p>Return the key ID (a u8vector) of the X.509 certificate authority of <var>cert</var>.
996 </p></dd></dl>
997
998 <dl>
999 <dt><a name="index-x509_002dcertificate_002dkey_002did"></a>Scheme Procedure: <strong>x509-certificate-key-id</strong> <em>cert</em></dt>
1000 <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.
1001 </p></dd></dl>
1002
1003 <dl>
1004 <dt><a name="index-x509_002dcertificate_002dversion"></a>Scheme Procedure: <strong>x509-certificate-version</strong> <em>cert</em></dt>
1005 <dd><p>Return the version of <var>cert</var>.
1006 </p></dd></dl>
1007
1008 <dl>
1009 <dt><a name="index-x509_002dcertificate_002dkey_002dusage"></a>Scheme Procedure: <strong>x509-certificate-key-usage</strong> <em>cert</em></dt>
1010 <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.
1011 </p></dd></dl>
1012
1013 <dl>
1014 <dt><a name="index-x509_002dcertificate_002dpublic_002dkey_002dalgorithm"></a>Scheme Procedure: <strong>x509-certificate-public-key-algorithm</strong> <em>cert</em></dt>
1015 <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.
1016 </p></dd></dl>
1017
1018 <dl>
1019 <dt><a name="index-x509_002dcertificate_002dsignature_002dalgorithm"></a>Scheme Procedure: <strong>x509-certificate-signature-algorithm</strong> <em>cert</em></dt>
1020 <dd><p>Return the signature algorithm used by <var>cert</var> (i.e., one of the <code>sign-algorithm/</code> values).
1021 </p></dd></dl>
1022
1023 <dl>
1024 <dt><a name="index-x509_002dcertificate_002dmatches_002dhostname_003f"></a>Scheme Procedure: <strong>x509-certificate-matches-hostname?</strong> <em>cert hostname</em></dt>
1025 <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).
1026 </p></dd></dl>
1027
1028 <dl>
1029 <dt><a name="index-x509_002dcertificate_002dissuer_002ddn_002doid"></a>Scheme Procedure: <strong>x509-certificate-issuer-dn-oid</strong> <em>cert index</em></dt>
1030 <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>.
1031 </p></dd></dl>
1032
1033 <dl>
1034 <dt><a name="index-x509_002dcertificate_002ddn_002doid"></a>Scheme Procedure: <strong>x509-certificate-dn-oid</strong> <em>cert index</em></dt>
1035 <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>.
1036 </p></dd></dl>
1037
1038 <dl>
1039 <dt><a name="index-x509_002dcertificate_002dissuer_002ddn"></a>Scheme Procedure: <strong>x509-certificate-issuer-dn</strong> <em>cert</em></dt>
1040 <dd><p>Return the distinguished name (DN) of X.509 certificate <var>cert</var>.
1041 </p></dd></dl>
1042
1043 <dl>
1044 <dt><a name="index-x509_002dcertificate_002ddn"></a>Scheme Procedure: <strong>x509-certificate-dn</strong> <em>cert</em></dt>
1045 <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>.
1046 </p></dd></dl>
1047
1048 <dl>
1049 <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>
1050 <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).
1051 </p></dd></dl>
1052
1053 <dl>
1054 <dt><a name="index-import_002dx509_002dprivate_002dkey"></a>Scheme Procedure: <strong>import-x509-private-key</strong> <em>data format</em></dt>
1055 <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>.
1056 </p></dd></dl>
1057
1058 <dl>
1059 <dt><a name="index-import_002dx509_002dcertificate"></a>Scheme Procedure: <strong>import-x509-certificate</strong> <em>data format</em></dt>
1060 <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>.
1061 </p></dd></dl>
1062
1063 <dl>
1064 <dt><a name="index-server_002dsession_002dpsk_002dusername"></a>Scheme Procedure: <strong>server-session-psk-username</strong> <em>session</em></dt>
1065 <dd><p>Return the username associated with PSK server session <var>session</var>.
1066 </p></dd></dl>
1067
1068 <dl>
1069 <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>
1070 <dd><p>Set the client credentials for <var>cred</var>, a PSK client credentials object.
1071 </p></dd></dl>
1072
1073 <dl>
1074 <dt><a name="index-make_002dpsk_002dclient_002dcredentials"></a>Scheme Procedure: <strong>make-psk-client-credentials</strong></dt>
1075 <dd><p>Return a new PSK client credentials object.
1076 </p></dd></dl>
1077
1078 <dl>
1079 <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>
1080 <dd><p>Use <var>file</var> as the password file for PSK server credentials <var>cred</var>.
1081 </p></dd></dl>
1082
1083 <dl>
1084 <dt><a name="index-make_002dpsk_002dserver_002dcredentials"></a>Scheme Procedure: <strong>make-psk-server-credentials</strong></dt>
1085 <dd><p>Return new PSK server credentials.
1086 </p></dd></dl>
1087
1088 <dl>
1089 <dt><a name="index-peer_002dcertificate_002dstatus"></a>Scheme Procedure: <strong>peer-certificate-status</strong> <em>session</em></dt>
1090 <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.
1091 </p></dd></dl>
1092
1093 <dl>
1094 <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>
1095 <dd><p>Set the certificate verification flags to <var>flags</var>, a series of <code>certificate-verify</code> values.
1096 </p></dd></dl>
1097
1098 <dl>
1099 <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>
1100 <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.
1101 </p></dd></dl>
1102
1103 <dl>
1104 <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>
1105 <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>.
1106 </p></dd></dl>
1107
1108 <dl>
1109 <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>
1110 <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>.
1111 </p></dd></dl>
1112
1113 <dl>
1114 <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>
1115 <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.
1116 </p></dd></dl>
1117
1118 <dl>
1119 <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>
1120 <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.
1121 </p></dd></dl>
1122
1123 <dl>
1124 <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>
1125 <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.
1126 </p></dd></dl>
1127
1128 <dl>
1129 <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>
1130 <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.
1131 </p></dd></dl>
1132
1133 <dl>
1134 <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>
1135 <dd><p>Use <var>file</var> as the password file for PSK server credentials <var>cred</var>.
1136 </p></dd></dl>
1137
1138 <dl>
1139 <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>
1140 <dd><p>Use RSA parameters <var>rsa_params</var> for certificate credentials <var>cred</var>.
1141 </p></dd></dl>
1142
1143 <dl>
1144 <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>
1145 <dd><p>Use Diffie-Hellman parameters <var>dh_params</var> for certificate credentials <var>cred</var>.
1146 </p></dd></dl>
1147
1148 <dl>
1149 <dt><a name="index-make_002dcertificate_002dcredentials"></a>Scheme Procedure: <strong>make-certificate-credentials</strong></dt>
1150 <dd><p>Return new certificate credentials (i.e., for use with either X.509 or OpenPGP certificates.
1151 </p></dd></dl>
1152
1153 <dl>
1154 <dt><a name="index-pkcs1_002dexport_002drsa_002dparameters-1"></a>Scheme Procedure: <strong>pkcs1-export-rsa-parameters</strong> <em>rsa-params format</em></dt>
1155 <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.
1156 </p></dd></dl>
1157
1158 <dl>
1159 <dt><a name="index-pkcs1_002dimport_002drsa_002dparameters"></a>Scheme Procedure: <strong>pkcs1-import-rsa-parameters</strong> <em>array format</em></dt>
1160 <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.
1161 </p></dd></dl>
1162
1163 <dl>
1164 <dt><a name="index-make_002drsa_002dparameters-1"></a>Scheme Procedure: <strong>make-rsa-parameters</strong> <em>bits</em></dt>
1165 <dd><p>Return new RSA parameters.
1166 </p></dd></dl>
1167
1168 <dl>
1169 <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>
1170 <dd><p>Set the Diffie-Hellman parameters of anonymous server credentials <var>cred</var>.
1171 </p></dd></dl>
1172
1173 <dl>
1174 <dt><a name="index-make_002danonymous_002dclient_002dcredentials"></a>Scheme Procedure: <strong>make-anonymous-client-credentials</strong></dt>
1175 <dd><p>Return anonymous client credentials.
1176 </p></dd></dl>
1177
1178 <dl>
1179 <dt><a name="index-make_002danonymous_002dserver_002dcredentials"></a>Scheme Procedure: <strong>make-anonymous-server-credentials</strong></dt>
1180 <dd><p>Return anonymous server credentials.
1181 </p></dd></dl>
1182
1183 <dl>
1184 <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>
1185 <dd><p>Use <var>bits</var> DH prime bits for <var>session</var>.
1186 </p></dd></dl>
1187
1188 <dl>
1189 <dt><a name="index-pkcs3_002dexport_002ddh_002dparameters"></a>Scheme Procedure: <strong>pkcs3-export-dh-parameters</strong> <em>dh-params format</em></dt>
1190 <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.
1191 </p></dd></dl>
1192
1193 <dl>
1194 <dt><a name="index-pkcs3_002dimport_002ddh_002dparameters"></a>Scheme Procedure: <strong>pkcs3-import-dh-parameters</strong> <em>array format</em></dt>
1195 <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.
1196 </p></dd></dl>
1197
1198 <dl>
1199 <dt><a name="index-make_002ddh_002dparameters"></a>Scheme Procedure: <strong>make-dh-parameters</strong> <em>bits</em></dt>
1200 <dd><p>Return new Diffie-Hellman parameters.
1201 </p></dd></dl>
1202
1203 <dl>
1204 <dt><a name="index-set_002dsession_002dtransport_002dport_0021-1"></a>Scheme Procedure: <strong>set-session-transport-port!</strong> <em>session port</em></dt>
1205 <dd><p>Use <var>port</var> as the input/output port for <var>session</var>.
1206 </p></dd></dl>
1207
1208 <dl>
1209 <dt><a name="index-set_002dsession_002dtransport_002dfd_0021-1"></a>Scheme Procedure: <strong>set-session-transport-fd!</strong> <em>session fd</em></dt>
1210 <dd><p>Use file descriptor <var>fd</var> as the underlying transport for <var>session</var>.
1211 </p></dd></dl>
1212
1213 <dl>
1214 <dt><a name="index-session_002drecord_002dport-1"></a>Scheme Procedure: <strong>session-record-port</strong> <em>session</em></dt>
1215 <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>).
1216 </p></dd></dl>
1217
1218 <dl>
1219 <dt><a name="index-record_002dreceive_0021-1"></a>Scheme Procedure: <strong>record-receive!</strong> <em>session array</em></dt>
1220 <dd><p>Receive data from <var>session</var> into <var>array</var>, a uniform homogeneous array.  Return the number of bytes actually received.
1221 </p></dd></dl>
1222
1223 <dl>
1224 <dt><a name="index-record_002dsend-1"></a>Scheme Procedure: <strong>record-send</strong> <em>session array</em></dt>
1225 <dd><p>Send the record constituted by <var>array</var> through <var>session</var>.
1226 </p></dd></dl>
1227
1228 <dl>
1229 <dt><a name="index-set_002dsession_002dcredentials_0021"></a>Scheme Procedure: <strong>set-session-credentials!</strong> <em>session cred</em></dt>
1230 <dd><p>Use <var>cred</var> as <var>session</var>&rsquo;s credentials.
1231 </p></dd></dl>
1232
1233 <dl>
1234 <dt><a name="index-cipher_002dsuite_002d_003estring"></a>Scheme Procedure: <strong>cipher-suite-&gt;string</strong> <em>kx cipher mac</em></dt>
1235 <dd><p>Return the name of the given cipher suite.
1236 </p></dd></dl>
1237
1238 <dl>
1239 <dt><a name="index-set_002dsession_002dpriorities_0021"></a>Scheme Procedure: <strong>set-session-priorities!</strong> <em>session priorities</em></dt>
1240 <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 Priority Strings).  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.
1241 </p>
1242 </dd></dl>
1243
1244 <dl>
1245 <dt><a name="index-set_002dsession_002ddefault_002dexport_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-default-export-priority!</strong> <em>session</em></dt>
1246 <dd><p>Have <var>session</var> use the default export priorities.
1247 </p></dd></dl>
1248
1249 <dl>
1250 <dt><a name="index-set_002dsession_002ddefault_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-default-priority!</strong> <em>session</em></dt>
1251 <dd><p>Have <var>session</var> use the default priorities.
1252 </p></dd></dl>
1253
1254 <dl>
1255 <dt><a name="index-set_002dsession_002dcertificate_002dtype_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-certificate-type-priority!</strong> <em>session items</em></dt>
1256 <dd><p>Use <var>items</var> (a list) as the list of preferred certificate-type for <var>session</var>.
1257 </p></dd></dl>
1258
1259 <dl>
1260 <dt><a name="index-set_002dsession_002dprotocol_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-protocol-priority!</strong> <em>session items</em></dt>
1261 <dd><p>Use <var>items</var> (a list) as the list of preferred protocol for <var>session</var>.
1262 </p></dd></dl>
1263
1264 <dl>
1265 <dt><a name="index-set_002dsession_002dkx_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-kx-priority!</strong> <em>session items</em></dt>
1266 <dd><p>Use <var>items</var> (a list) as the list of preferred kx for <var>session</var>.
1267 </p></dd></dl>
1268
1269 <dl>
1270 <dt><a name="index-set_002dsession_002dcompression_002dmethod_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-compression-method-priority!</strong> <em>session items</em></dt>
1271 <dd><p>Use <var>items</var> (a list) as the list of preferred compression-method for <var>session</var>.
1272 </p></dd></dl>
1273
1274 <dl>
1275 <dt><a name="index-set_002dsession_002dmac_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-mac-priority!</strong> <em>session items</em></dt>
1276 <dd><p>Use <var>items</var> (a list) as the list of preferred mac for <var>session</var>.
1277 </p></dd></dl>
1278
1279 <dl>
1280 <dt><a name="index-set_002dsession_002dcipher_002dpriority_0021"></a>Scheme Procedure: <strong>set-session-cipher-priority!</strong> <em>session items</em></dt>
1281 <dd><p>Use <var>items</var> (a list) as the list of preferred cipher for <var>session</var>.
1282 </p></dd></dl>
1283
1284 <dl>
1285 <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>
1286 <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>.
1287 </p></dd></dl>
1288
1289 <dl>
1290 <dt><a name="index-session_002dour_002dcertificate_002dchain"></a>Scheme Procedure: <strong>session-our-certificate-chain</strong> <em>session</em></dt>
1291 <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.
1292 </p></dd></dl>
1293
1294 <dl>
1295 <dt><a name="index-session_002dpeer_002dcertificate_002dchain"></a>Scheme Procedure: <strong>session-peer-certificate-chain</strong> <em>session</em></dt>
1296 <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.
1297 </p></dd></dl>
1298
1299 <dl>
1300 <dt><a name="index-session_002dclient_002dauthentication_002dtype"></a>Scheme Procedure: <strong>session-client-authentication-type</strong> <em>session</em></dt>
1301 <dd><p>Return the client authentication type (a <code>credential-type</code> value) used in <var>session</var>.
1302 </p></dd></dl>
1303
1304 <dl>
1305 <dt><a name="index-session_002dserver_002dauthentication_002dtype"></a>Scheme Procedure: <strong>session-server-authentication-type</strong> <em>session</em></dt>
1306 <dd><p>Return the server authentication type (a <code>credential-type</code> value) used in <var>session</var>.
1307 </p></dd></dl>
1308
1309 <dl>
1310 <dt><a name="index-session_002dauthentication_002dtype"></a>Scheme Procedure: <strong>session-authentication-type</strong> <em>session</em></dt>
1311 <dd><p>Return the authentication type (a <code>credential-type</code> value) used by <var>session</var>.
1312 </p></dd></dl>
1313
1314 <dl>
1315 <dt><a name="index-session_002dprotocol"></a>Scheme Procedure: <strong>session-protocol</strong> <em>session</em></dt>
1316 <dd><p>Return the protocol used by <var>session</var>.
1317 </p></dd></dl>
1318
1319 <dl>
1320 <dt><a name="index-session_002dcertificate_002dtype"></a>Scheme Procedure: <strong>session-certificate-type</strong> <em>session</em></dt>
1321 <dd><p>Return <var>session</var>&rsquo;s certificate type.
1322 </p></dd></dl>
1323
1324 <dl>
1325 <dt><a name="index-session_002dcompression_002dmethod"></a>Scheme Procedure: <strong>session-compression-method</strong> <em>session</em></dt>
1326 <dd><p>Return <var>session</var>&rsquo;s compression method.
1327 </p></dd></dl>
1328
1329 <dl>
1330 <dt><a name="index-session_002dmac"></a>Scheme Procedure: <strong>session-mac</strong> <em>session</em></dt>
1331 <dd><p>Return <var>session</var>&rsquo;s MAC.
1332 </p></dd></dl>
1333
1334 <dl>
1335 <dt><a name="index-session_002dkx"></a>Scheme Procedure: <strong>session-kx</strong> <em>session</em></dt>
1336 <dd><p>Return <var>session</var>&rsquo;s kx.
1337 </p></dd></dl>
1338
1339 <dl>
1340 <dt><a name="index-session_002dcipher-1"></a>Scheme Procedure: <strong>session-cipher</strong> <em>session</em></dt>
1341 <dd><p>Return <var>session</var>&rsquo;s cipher.
1342 </p></dd></dl>
1343
1344 <dl>
1345 <dt><a name="index-alert_002dsend"></a>Scheme Procedure: <strong>alert-send</strong> <em>session level alert</em></dt>
1346 <dd><p>Send <var>alert</var> via <var>session</var>.
1347 </p></dd></dl>
1348
1349 <dl>
1350 <dt><a name="index-alert_002dget"></a>Scheme Procedure: <strong>alert-get</strong> <em>session</em></dt>
1351 <dd><p>Get an aleter from <var>session</var>.
1352 </p></dd></dl>
1353
1354 <dl>
1355 <dt><a name="index-rehandshake"></a>Scheme Procedure: <strong>rehandshake</strong> <em>session</em></dt>
1356 <dd><p>Perform a re-handshaking for <var>session</var>.
1357 </p></dd></dl>
1358
1359 <dl>
1360 <dt><a name="index-handshake"></a>Scheme Procedure: <strong>handshake</strong> <em>session</em></dt>
1361 <dd><p>Perform a handshake for <var>session</var>.
1362 </p></dd></dl>
1363
1364 <dl>
1365 <dt><a name="index-bye"></a>Scheme Procedure: <strong>bye</strong> <em>session how</em></dt>
1366 <dd><p>Close <var>session</var> according to <var>how</var>.
1367 </p></dd></dl>
1368
1369 <dl>
1370 <dt><a name="index-make_002dsession"></a>Scheme Procedure: <strong>make-session</strong> <em>end</em></dt>
1371 <dd><p>Return a new session for connection end <var>end</var>, either <code>connection-end/server</code> or <code>connection-end/client</code>.
1372 </p></dd></dl>
1373
1374 <dl>
1375 <dt><a name="index-gnutls_002dversion"></a>Scheme Procedure: <strong>gnutls-version</strong></dt>
1376 <dd><p>Return a string denoting the version number of the underlying GnuTLS library, e.g., <code>&quot;1.7.2&quot;</code>.
1377 </p></dd></dl>
1378
1379 <dl>
1380 <dt><a name="index-openpgp_002dkeyring_003f"></a>Scheme Procedure: <strong>openpgp-keyring?</strong> <em>obj</em></dt>
1381 <dd><p>Return true if <var>obj</var> is of type <code>openpgp-keyring</code>.
1382 </p></dd></dl>
1383
1384 <dl>
1385 <dt><a name="index-openpgp_002dprivate_002dkey_003f"></a>Scheme Procedure: <strong>openpgp-private-key?</strong> <em>obj</em></dt>
1386 <dd><p>Return true if <var>obj</var> is of type <code>openpgp-private-key</code>.
1387 </p></dd></dl>
1388
1389 <dl>
1390 <dt><a name="index-openpgp_002dcertificate_003f"></a>Scheme Procedure: <strong>openpgp-certificate?</strong> <em>obj</em></dt>
1391 <dd><p>Return true if <var>obj</var> is of type <code>openpgp-certificate</code>.
1392 </p></dd></dl>
1393
1394 <dl>
1395 <dt><a name="index-x509_002dprivate_002dkey_003f"></a>Scheme Procedure: <strong>x509-private-key?</strong> <em>obj</em></dt>
1396 <dd><p>Return true if <var>obj</var> is of type <code>x509-private-key</code>.
1397 </p></dd></dl>
1398
1399 <dl>
1400 <dt><a name="index-x509_002dcertificate_003f"></a>Scheme Procedure: <strong>x509-certificate?</strong> <em>obj</em></dt>
1401 <dd><p>Return true if <var>obj</var> is of type <code>x509-certificate</code>.
1402 </p></dd></dl>
1403
1404 <dl>
1405 <dt><a name="index-psk_002dclient_002dcredentials_003f"></a>Scheme Procedure: <strong>psk-client-credentials?</strong> <em>obj</em></dt>
1406 <dd><p>Return true if <var>obj</var> is of type <code>psk-client-credentials</code>.
1407 </p></dd></dl>
1408
1409 <dl>
1410 <dt><a name="index-psk_002dserver_002dcredentials_003f"></a>Scheme Procedure: <strong>psk-server-credentials?</strong> <em>obj</em></dt>
1411 <dd><p>Return true if <var>obj</var> is of type <code>psk-server-credentials</code>.
1412 </p></dd></dl>
1413
1414 <dl>
1415 <dt><a name="index-srp_002dclient_002dcredentials_003f"></a>Scheme Procedure: <strong>srp-client-credentials?</strong> <em>obj</em></dt>
1416 <dd><p>Return true if <var>obj</var> is of type <code>srp-client-credentials</code>.
1417 </p></dd></dl>
1418
1419 <dl>
1420 <dt><a name="index-srp_002dserver_002dcredentials_003f"></a>Scheme Procedure: <strong>srp-server-credentials?</strong> <em>obj</em></dt>
1421 <dd><p>Return true if <var>obj</var> is of type <code>srp-server-credentials</code>.
1422 </p></dd></dl>
1423
1424 <dl>
1425 <dt><a name="index-certificate_002dcredentials_003f"></a>Scheme Procedure: <strong>certificate-credentials?</strong> <em>obj</em></dt>
1426 <dd><p>Return true if <var>obj</var> is of type <code>certificate-credentials</code>.
1427 </p></dd></dl>
1428
1429 <dl>
1430 <dt><a name="index-rsa_002dparameters_003f"></a>Scheme Procedure: <strong>rsa-parameters?</strong> <em>obj</em></dt>
1431 <dd><p>Return true if <var>obj</var> is of type <code>rsa-parameters</code>.
1432 </p></dd></dl>
1433
1434 <dl>
1435 <dt><a name="index-dh_002dparameters_003f"></a>Scheme Procedure: <strong>dh-parameters?</strong> <em>obj</em></dt>
1436 <dd><p>Return true if <var>obj</var> is of type <code>dh-parameters</code>.
1437 </p></dd></dl>
1438
1439 <dl>
1440 <dt><a name="index-anonymous_002dserver_002dcredentials_003f"></a>Scheme Procedure: <strong>anonymous-server-credentials?</strong> <em>obj</em></dt>
1441 <dd><p>Return true if <var>obj</var> is of type <code>anonymous-server-credentials</code>.
1442 </p></dd></dl>
1443
1444 <dl>
1445 <dt><a name="index-anonymous_002dclient_002dcredentials_003f"></a>Scheme Procedure: <strong>anonymous-client-credentials?</strong> <em>obj</em></dt>
1446 <dd><p>Return true if <var>obj</var> is of type <code>anonymous-client-credentials</code>.
1447 </p></dd></dl>
1448
1449 <dl>
1450 <dt><a name="index-session_003f"></a>Scheme Procedure: <strong>session?</strong> <em>obj</em></dt>
1451 <dd><p>Return true if <var>obj</var> is of type <code>session</code>.
1452 </p></dd></dl>
1453
1454 <dl>
1455 <dt><a name="index-openpgp_002dcertificate_002dformat_002d_003estring"></a>Scheme Procedure: <strong>openpgp-certificate-format-&gt;string</strong> <em>enumval</em></dt>
1456 <dd><p>Return a string describing <var>enumval</var>, a <code>openpgp-certificate-format</code> value.
1457 </p></dd></dl>
1458
1459 <dl>
1460 <dt><a name="index-error_002d_003estring-1"></a>Scheme Procedure: <strong>error-&gt;string</strong> <em>enumval</em></dt>
1461 <dd><p>Return a string describing <var>enumval</var>, a <code>error</code> value.
1462 </p></dd></dl>
1463
1464 <dl>
1465 <dt><a name="index-certificate_002dverify_002d_003estring"></a>Scheme Procedure: <strong>certificate-verify-&gt;string</strong> <em>enumval</em></dt>
1466 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-verify</code> value.
1467 </p></dd></dl>
1468
1469 <dl>
1470 <dt><a name="index-key_002dusage_002d_003estring"></a>Scheme Procedure: <strong>key-usage-&gt;string</strong> <em>enumval</em></dt>
1471 <dd><p>Return a string describing <var>enumval</var>, a <code>key-usage</code> value.
1472 </p></dd></dl>
1473
1474 <dl>
1475 <dt><a name="index-psk_002dkey_002dformat_002d_003estring"></a>Scheme Procedure: <strong>psk-key-format-&gt;string</strong> <em>enumval</em></dt>
1476 <dd><p>Return a string describing <var>enumval</var>, a <code>psk-key-format</code> value.
1477 </p></dd></dl>
1478
1479 <dl>
1480 <dt><a name="index-sign_002dalgorithm_002d_003estring"></a>Scheme Procedure: <strong>sign-algorithm-&gt;string</strong> <em>enumval</em></dt>
1481 <dd><p>Return a string describing <var>enumval</var>, a <code>sign-algorithm</code> value.
1482 </p></dd></dl>
1483
1484 <dl>
1485 <dt><a name="index-pk_002dalgorithm_002d_003estring"></a>Scheme Procedure: <strong>pk-algorithm-&gt;string</strong> <em>enumval</em></dt>
1486 <dd><p>Return a string describing <var>enumval</var>, a <code>pk-algorithm</code> value.
1487 </p></dd></dl>
1488
1489 <dl>
1490 <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>
1491 <dd><p>Return a string describing <var>enumval</var>, a <code>x509-subject-alternative-name</code> value.
1492 </p></dd></dl>
1493
1494 <dl>
1495 <dt><a name="index-x509_002dcertificate_002dformat_002d_003estring"></a>Scheme Procedure: <strong>x509-certificate-format-&gt;string</strong> <em>enumval</em></dt>
1496 <dd><p>Return a string describing <var>enumval</var>, a <code>x509-certificate-format</code> value.
1497 </p></dd></dl>
1498
1499 <dl>
1500 <dt><a name="index-certificate_002dtype_002d_003estring"></a>Scheme Procedure: <strong>certificate-type-&gt;string</strong> <em>enumval</em></dt>
1501 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-type</code> value.
1502 </p></dd></dl>
1503
1504 <dl>
1505 <dt><a name="index-protocol_002d_003estring"></a>Scheme Procedure: <strong>protocol-&gt;string</strong> <em>enumval</em></dt>
1506 <dd><p>Return a string describing <var>enumval</var>, a <code>protocol</code> value.
1507 </p></dd></dl>
1508
1509 <dl>
1510 <dt><a name="index-close_002drequest_002d_003estring"></a>Scheme Procedure: <strong>close-request-&gt;string</strong> <em>enumval</em></dt>
1511 <dd><p>Return a string describing <var>enumval</var>, a <code>close-request</code> value.
1512 </p></dd></dl>
1513
1514 <dl>
1515 <dt><a name="index-certificate_002drequest_002d_003estring"></a>Scheme Procedure: <strong>certificate-request-&gt;string</strong> <em>enumval</em></dt>
1516 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-request</code> value.
1517 </p></dd></dl>
1518
1519 <dl>
1520 <dt><a name="index-certificate_002dstatus_002d_003estring"></a>Scheme Procedure: <strong>certificate-status-&gt;string</strong> <em>enumval</em></dt>
1521 <dd><p>Return a string describing <var>enumval</var>, a <code>certificate-status</code> value.
1522 </p></dd></dl>
1523
1524 <dl>
1525 <dt><a name="index-handshake_002ddescription_002d_003estring"></a>Scheme Procedure: <strong>handshake-description-&gt;string</strong> <em>enumval</em></dt>
1526 <dd><p>Return a string describing <var>enumval</var>, a <code>handshake-description</code> value.
1527 </p></dd></dl>
1528
1529 <dl>
1530 <dt><a name="index-alert_002ddescription_002d_003estring"></a>Scheme Procedure: <strong>alert-description-&gt;string</strong> <em>enumval</em></dt>
1531 <dd><p>Return a string describing <var>enumval</var>, a <code>alert-description</code> value.
1532 </p></dd></dl>
1533
1534 <dl>
1535 <dt><a name="index-alert_002dlevel_002d_003estring"></a>Scheme Procedure: <strong>alert-level-&gt;string</strong> <em>enumval</em></dt>
1536 <dd><p>Return a string describing <var>enumval</var>, a <code>alert-level</code> value.
1537 </p></dd></dl>
1538
1539 <dl>
1540 <dt><a name="index-connection_002dend_002d_003estring"></a>Scheme Procedure: <strong>connection-end-&gt;string</strong> <em>enumval</em></dt>
1541 <dd><p>Return a string describing <var>enumval</var>, a <code>connection-end</code> value.
1542 </p></dd></dl>
1543
1544 <dl>
1545 <dt><a name="index-compression_002dmethod_002d_003estring"></a>Scheme Procedure: <strong>compression-method-&gt;string</strong> <em>enumval</em></dt>
1546 <dd><p>Return a string describing <var>enumval</var>, a <code>compression-method</code> value.
1547 </p></dd></dl>
1548
1549 <dl>
1550 <dt><a name="index-digest_002d_003estring"></a>Scheme Procedure: <strong>digest-&gt;string</strong> <em>enumval</em></dt>
1551 <dd><p>Return a string describing <var>enumval</var>, a <code>digest</code> value.
1552 </p></dd></dl>
1553
1554 <dl>
1555 <dt><a name="index-mac_002d_003estring"></a>Scheme Procedure: <strong>mac-&gt;string</strong> <em>enumval</em></dt>
1556 <dd><p>Return a string describing <var>enumval</var>, a <code>mac</code> value.
1557 </p></dd></dl>
1558
1559 <dl>
1560 <dt><a name="index-credentials_002d_003estring"></a>Scheme Procedure: <strong>credentials-&gt;string</strong> <em>enumval</em></dt>
1561 <dd><p>Return a string describing <var>enumval</var>, a <code>credentials</code> value.
1562 </p></dd></dl>
1563
1564 <dl>
1565 <dt><a name="index-params_002d_003estring"></a>Scheme Procedure: <strong>params-&gt;string</strong> <em>enumval</em></dt>
1566 <dd><p>Return a string describing <var>enumval</var>, a <code>params</code> value.
1567 </p></dd></dl>
1568
1569 <dl>
1570 <dt><a name="index-kx_002d_003estring"></a>Scheme Procedure: <strong>kx-&gt;string</strong> <em>enumval</em></dt>
1571 <dd><p>Return a string describing <var>enumval</var>, a <code>kx</code> value.
1572 </p></dd></dl>
1573
1574 <dl>
1575 <dt><a name="index-cipher_002d_003estring"></a>Scheme Procedure: <strong>cipher-&gt;string</strong> <em>enumval</em></dt>
1576 <dd><p>Return a string describing <var>enumval</var>, a <code>cipher</code> value.
1577 </p></dd></dl>
1578
1579
1580 <hr>
1581 <a name="Copying-Information"></a>
1582 <div class="header">
1583 <p>
1584 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>
1585 </div>
1586 <a name="Copying-Information-1"></a>
1587 <h2 class="appendix">Appendix A Copying Information</h2>
1588 <a name="index-FDL_002c-GNU-Free-Documentation-License"></a>
1589
1590 <a name="GNU-Free-Documentation-License"></a>
1591 <h3 class="heading">GNU Free Documentation License</h3>
1592
1593 <div align="center">Version 1.3, 3 November 2008
1594 </div>
1595
1596 <div class="display">
1597 <pre class="display">Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
1598 <a href="http://fsf.org/">http://fsf.org/</a>
1599
1600 Everyone is permitted to copy and distribute verbatim copies
1601 of this license document, but changing it is not allowed.
1602 </pre></div>
1603
1604 <ol>
1605 <li> PREAMBLE
1606
1607 <p>The purpose of this License is to make a manual, textbook, or other
1608 functional and useful document <em>free</em> in the sense of freedom: to
1609 assure everyone the effective freedom to copy and redistribute it,
1610 with or without modifying it, either commercially or noncommercially.
1611 Secondarily, this License preserves for the author and publisher a way
1612 to get credit for their work, while not being considered responsible
1613 for modifications made by others.
1614 </p>
1615 <p>This License is a kind of &ldquo;copyleft&rdquo;, which means that derivative
1616 works of the document must themselves be free in the same sense.  It
1617 complements the GNU General Public License, which is a copyleft
1618 license designed for free software.
1619 </p>
1620 <p>We have designed this License in order to use it for manuals for free
1621 software, because free software needs free documentation: a free
1622 program should come with manuals providing the same freedoms that the
1623 software does.  But this License is not limited to software manuals;
1624 it can be used for any textual work, regardless of subject matter or
1625 whether it is published as a printed book.  We recommend this License
1626 principally for works whose purpose is instruction or reference.
1627 </p>
1628 </li><li> APPLICABILITY AND DEFINITIONS
1629
1630 <p>This License applies to any manual or other work, in any medium, that
1631 contains a notice placed by the copyright holder saying it can be
1632 distributed under the terms of this License.  Such a notice grants a
1633 world-wide, royalty-free license, unlimited in duration, to use that
1634 work under the conditions stated herein.  The &ldquo;Document&rdquo;, below,
1635 refers to any such manual or work.  Any member of the public is a
1636 licensee, and is addressed as &ldquo;you&rdquo;.  You accept the license if you
1637 copy, modify or distribute the work in a way requiring permission
1638 under copyright law.
1639 </p>
1640 <p>A &ldquo;Modified Version&rdquo; of the Document means any work containing the
1641 Document or a portion of it, either copied verbatim, or with
1642 modifications and/or translated into another language.
1643 </p>
1644 <p>A &ldquo;Secondary Section&rdquo; is a named appendix or a front-matter section
1645 of the Document that deals exclusively with the relationship of the
1646 publishers or authors of the Document to the Document&rsquo;s overall
1647 subject (or to related matters) and contains nothing that could fall
1648 directly within that overall subject.  (Thus, if the Document is in
1649 part a textbook of mathematics, a Secondary Section may not explain
1650 any mathematics.)  The relationship could be a matter of historical
1651 connection with the subject or with related matters, or of legal,
1652 commercial, philosophical, ethical or political position regarding
1653 them.
1654 </p>
1655 <p>The &ldquo;Invariant Sections&rdquo; are certain Secondary Sections whose titles
1656 are designated, as being those of Invariant Sections, in the notice
1657 that says that the Document is released under this License.  If a
1658 section does not fit the above definition of Secondary then it is not
1659 allowed to be designated as Invariant.  The Document may contain zero
1660 Invariant Sections.  If the Document does not identify any Invariant
1661 Sections then there are none.
1662 </p>
1663 <p>The &ldquo;Cover Texts&rdquo; are certain short passages of text that are listed,
1664 as Front-Cover Texts or Back-Cover Texts, in the notice that says that
1665 the Document is released under this License.  A Front-Cover Text may
1666 be at most 5 words, and a Back-Cover Text may be at most 25 words.
1667 </p>
1668 <p>A &ldquo;Transparent&rdquo; copy of the Document means a machine-readable copy,
1669 represented in a format whose specification is available to the
1670 general public, that is suitable for revising the document
1671 straightforwardly with generic text editors or (for images composed of
1672 pixels) generic paint programs or (for drawings) some widely available
1673 drawing editor, and that is suitable for input to text formatters or
1674 for automatic translation to a variety of formats suitable for input
1675 to text formatters.  A copy made in an otherwise Transparent file
1676 format whose markup, or absence of markup, has been arranged to thwart
1677 or discourage subsequent modification by readers is not Transparent.
1678 An image format is not Transparent if used for any substantial amount
1679 of text.  A copy that is not &ldquo;Transparent&rdquo; is called &ldquo;Opaque&rdquo;.
1680 </p>
1681 <p>Examples of suitable formats for Transparent copies include plain
1682 ASCII without markup, Texinfo input format, LaTeX input
1683 format, SGML or XML using a publicly available
1684 DTD, and standard-conforming simple HTML,
1685 PostScript or PDF designed for human modification.  Examples
1686 of transparent image formats include PNG, XCF and
1687 JPG.  Opaque formats include proprietary formats that can be
1688 read and edited only by proprietary word processors, SGML or
1689 XML for which the DTD and/or processing tools are
1690 not generally available, and the machine-generated HTML,
1691 PostScript or PDF produced by some word processors for
1692 output purposes only.
1693 </p>
1694 <p>The &ldquo;Title Page&rdquo; means, for a printed book, the title page itself,
1695 plus such following pages as are needed to hold, legibly, the material
1696 this License requires to appear in the title page.  For works in
1697 formats which do not have any title page as such, &ldquo;Title Page&rdquo; means
1698 the text near the most prominent appearance of the work&rsquo;s title,
1699 preceding the beginning of the body of the text.
1700 </p>
1701 <p>The &ldquo;publisher&rdquo; means any person or entity that distributes copies
1702 of the Document to the public.
1703 </p>
1704 <p>A section &ldquo;Entitled XYZ&rdquo; means a named subunit of the Document whose
1705 title either is precisely XYZ or contains XYZ in parentheses following
1706 text that translates XYZ in another language.  (Here XYZ stands for a
1707 specific section name mentioned below, such as &ldquo;Acknowledgements&rdquo;,
1708 &ldquo;Dedications&rdquo;, &ldquo;Endorsements&rdquo;, or &ldquo;History&rdquo;.)  To &ldquo;Preserve the Title&rdquo;
1709 of such a section when you modify the Document means that it remains a
1710 section &ldquo;Entitled XYZ&rdquo; according to this definition.
1711 </p>
1712 <p>The Document may include Warranty Disclaimers next to the notice which
1713 states that this License applies to the Document.  These Warranty
1714 Disclaimers are considered to be included by reference in this
1715 License, but only as regards disclaiming warranties: any other
1716 implication that these Warranty Disclaimers may have is void and has
1717 no effect on the meaning of this License.
1718 </p>
1719 </li><li> VERBATIM COPYING
1720
1721 <p>You may copy and distribute the Document in any medium, either
1722 commercially or noncommercially, provided that this License, the
1723 copyright notices, and the license notice saying this License applies
1724 to the Document are reproduced in all copies, and that you add no other
1725 conditions whatsoever to those of this License.  You may not use
1726 technical measures to obstruct or control the reading or further
1727 copying of the copies you make or distribute.  However, you may accept
1728 compensation in exchange for copies.  If you distribute a large enough
1729 number of copies you must also follow the conditions in section 3.
1730 </p>
1731 <p>You may also lend copies, under the same conditions stated above, and
1732 you may publicly display copies.
1733 </p>
1734 </li><li> COPYING IN QUANTITY
1735
1736 <p>If you publish printed copies (or copies in media that commonly have
1737 printed covers) of the Document, numbering more than 100, and the
1738 Document&rsquo;s license notice requires Cover Texts, you must enclose the
1739 copies in covers that carry, clearly and legibly, all these Cover
1740 Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
1741 the back cover.  Both covers must also clearly and legibly identify
1742 you as the publisher of these copies.  The front cover must present
1743 the full title with all words of the title equally prominent and
1744 visible.  You may add other material on the covers in addition.
1745 Copying with changes limited to the covers, as long as they preserve
1746 the title of the Document and satisfy these conditions, can be treated
1747 as verbatim copying in other respects.
1748 </p>
1749 <p>If the required texts for either cover are too voluminous to fit
1750 legibly, you should put the first ones listed (as many as fit
1751 reasonably) on the actual cover, and continue the rest onto adjacent
1752 pages.
1753 </p>
1754 <p>If you publish or distribute Opaque copies of the Document numbering
1755 more than 100, you must either include a machine-readable Transparent
1756 copy along with each Opaque copy, or state in or with each Opaque copy
1757 a computer-network location from which the general network-using
1758 public has access to download using public-standard network protocols
1759 a complete Transparent copy of the Document, free of added material.
1760 If you use the latter option, you must take reasonably prudent steps,
1761 when you begin distribution of Opaque copies in quantity, to ensure
1762 that this Transparent copy will remain thus accessible at the stated
1763 location until at least one year after the last time you distribute an
1764 Opaque copy (directly or through your agents or retailers) of that
1765 edition to the public.
1766 </p>
1767 <p>It is requested, but not required, that you contact the authors of the
1768 Document well before redistributing any large number of copies, to give
1769 them a chance to provide you with an updated version of the Document.
1770 </p>
1771 </li><li> MODIFICATIONS
1772
1773 <p>You may copy and distribute a Modified Version of the Document under
1774 the conditions of sections 2 and 3 above, provided that you release
1775 the Modified Version under precisely this License, with the Modified
1776 Version filling the role of the Document, thus licensing distribution
1777 and modification of the Modified Version to whoever possesses a copy
1778 of it.  In addition, you must do these things in the Modified Version:
1779 </p>
1780 <ol>
1781 <li> Use in the Title Page (and on the covers, if any) a title distinct
1782 from that of the Document, and from those of previous versions
1783 (which should, if there were any, be listed in the History section
1784 of the Document).  You may use the same title as a previous version
1785 if the original publisher of that version gives permission.
1786
1787 </li><li> List on the Title Page, as authors, one or more persons or entities
1788 responsible for authorship of the modifications in the Modified
1789 Version, together with at least five of the principal authors of the
1790 Document (all of its principal authors, if it has fewer than five),
1791 unless they release you from this requirement.
1792
1793 </li><li> State on the Title page the name of the publisher of the
1794 Modified Version, as the publisher.
1795
1796 </li><li> Preserve all the copyright notices of the Document.
1797
1798 </li><li> Add an appropriate copyright notice for your modifications
1799 adjacent to the other copyright notices.
1800
1801 </li><li> Include, immediately after the copyright notices, a license notice
1802 giving the public permission to use the Modified Version under the
1803 terms of this License, in the form shown in the Addendum below.
1804
1805 </li><li> Preserve in that license notice the full lists of Invariant Sections
1806 and required Cover Texts given in the Document&rsquo;s license notice.
1807
1808 </li><li> Include an unaltered copy of this License.
1809
1810 </li><li> Preserve the section Entitled &ldquo;History&rdquo;, Preserve its Title, and add
1811 to it an item stating at least the title, year, new authors, and
1812 publisher of the Modified Version as given on the Title Page.  If
1813 there is no section Entitled &ldquo;History&rdquo; in the Document, create one
1814 stating the title, year, authors, and publisher of the Document as
1815 given on its Title Page, then add an item describing the Modified
1816 Version as stated in the previous sentence.
1817
1818 </li><li> Preserve the network location, if any, given in the Document for
1819 public access to a Transparent copy of the Document, and likewise
1820 the network locations given in the Document for previous versions
1821 it was based on.  These may be placed in the &ldquo;History&rdquo; section.
1822 You may omit a network location for a work that was published at
1823 least four years before the Document itself, or if the original
1824 publisher of the version it refers to gives permission.
1825
1826 </li><li> For any section Entitled &ldquo;Acknowledgements&rdquo; or &ldquo;Dedications&rdquo;, Preserve
1827 the Title of the section, and preserve in the section all the
1828 substance and tone of each of the contributor acknowledgements and/or
1829 dedications given therein.
1830
1831 </li><li> Preserve all the Invariant Sections of the Document,
1832 unaltered in their text and in their titles.  Section numbers
1833 or the equivalent are not considered part of the section titles.
1834
1835 </li><li> Delete any section Entitled &ldquo;Endorsements&rdquo;.  Such a section
1836 may not be included in the Modified Version.
1837
1838 </li><li> Do not retitle any existing section to be Entitled &ldquo;Endorsements&rdquo; or
1839 to conflict in title with any Invariant Section.
1840
1841 </li><li> Preserve any Warranty Disclaimers.
1842 </li></ol>
1843
1844 <p>If the Modified Version includes new front-matter sections or
1845 appendices that qualify as Secondary Sections and contain no material
1846 copied from the Document, you may at your option designate some or all
1847 of these sections as invariant.  To do this, add their titles to the
1848 list of Invariant Sections in the Modified Version&rsquo;s license notice.
1849 These titles must be distinct from any other section titles.
1850 </p>
1851 <p>You may add a section Entitled &ldquo;Endorsements&rdquo;, provided it contains
1852 nothing but endorsements of your Modified Version by various
1853 parties&mdash;for example, statements of peer review or that the text has
1854 been approved by an organization as the authoritative definition of a
1855 standard.
1856 </p>
1857 <p>You may add a passage of up to five words as a Front-Cover Text, and a
1858 passage of up to 25 words as a Back-Cover Text, to the end of the list
1859 of Cover Texts in the Modified Version.  Only one passage of
1860 Front-Cover Text and one of Back-Cover Text may be added by (or
1861 through arrangements made by) any one entity.  If the Document already
1862 includes a cover text for the same cover, previously added by you or
1863 by arrangement made by the same entity you are acting on behalf of,
1864 you may not add another; but you may replace the old one, on explicit
1865 permission from the previous publisher that added the old one.
1866 </p>
1867 <p>The author(s) and publisher(s) of the Document do not by this License
1868 give permission to use their names for publicity for or to assert or
1869 imply endorsement of any Modified Version.
1870 </p>
1871 </li><li> COMBINING DOCUMENTS
1872
1873 <p>You may combine the Document with other documents released under this
1874 License, under the terms defined in section 4 above for modified
1875 versions, provided that you include in the combination all of the
1876 Invariant Sections of all of the original documents, unmodified, and
1877 list them all as Invariant Sections of your combined work in its
1878 license notice, and that you preserve all their Warranty Disclaimers.
1879 </p>
1880 <p>The combined work need only contain one copy of this License, and
1881 multiple identical Invariant Sections may be replaced with a single
1882 copy.  If there are multiple Invariant Sections with the same name but
1883 different contents, make the title of each such section unique by
1884 adding at the end of it, in parentheses, the name of the original
1885 author or publisher of that section if known, or else a unique number.
1886 Make the same adjustment to the section titles in the list of
1887 Invariant Sections in the license notice of the combined work.
1888 </p>
1889 <p>In the combination, you must combine any sections Entitled &ldquo;History&rdquo;
1890 in the various original documents, forming one section Entitled
1891 &ldquo;History&rdquo;; likewise combine any sections Entitled &ldquo;Acknowledgements&rdquo;,
1892 and any sections Entitled &ldquo;Dedications&rdquo;.  You must delete all
1893 sections Entitled &ldquo;Endorsements.&rdquo;
1894 </p>
1895 </li><li> COLLECTIONS OF DOCUMENTS
1896
1897 <p>You may make a collection consisting of the Document and other documents
1898 released under this License, and replace the individual copies of this
1899 License in the various documents with a single copy that is included in
1900 the collection, provided that you follow the rules of this License for
1901 verbatim copying of each of the documents in all other respects.
1902 </p>
1903 <p>You may extract a single document from such a collection, and distribute
1904 it individually under this License, provided you insert a copy of this
1905 License into the extracted document, and follow this License in all
1906 other respects regarding verbatim copying of that document.
1907 </p>
1908 </li><li> AGGREGATION WITH INDEPENDENT WORKS
1909
1910 <p>A compilation of the Document or its derivatives with other separate
1911 and independent documents or works, in or on a volume of a storage or
1912 distribution medium, is called an &ldquo;aggregate&rdquo; if the copyright
1913 resulting from the compilation is not used to limit the legal rights
1914 of the compilation&rsquo;s users beyond what the individual works permit.
1915 When the Document is included in an aggregate, this License does not
1916 apply to the other works in the aggregate which are not themselves
1917 derivative works of the Document.
1918 </p>
1919 <p>If the Cover Text requirement of section 3 is applicable to these
1920 copies of the Document, then if the Document is less than one half of
1921 the entire aggregate, the Document&rsquo;s Cover Texts may be placed on
1922 covers that bracket the Document within the aggregate, or the
1923 electronic equivalent of covers if the Document is in electronic form.
1924 Otherwise they must appear on printed covers that bracket the whole
1925 aggregate.
1926 </p>
1927 </li><li> TRANSLATION
1928
1929 <p>Translation is considered a kind of modification, so you may
1930 distribute translations of the Document under the terms of section 4.
1931 Replacing Invariant Sections with translations requires special
1932 permission from their copyright holders, but you may include
1933 translations of some or all Invariant Sections in addition to the
1934 original versions of these Invariant Sections.  You may include a
1935 translation of this License, and all the license notices in the
1936 Document, and any Warranty Disclaimers, provided that you also include
1937 the original English version of this License and the original versions
1938 of those notices and disclaimers.  In case of a disagreement between
1939 the translation and the original version of this License or a notice
1940 or disclaimer, the original version will prevail.
1941 </p>
1942 <p>If a section in the Document is Entitled &ldquo;Acknowledgements&rdquo;,
1943 &ldquo;Dedications&rdquo;, or &ldquo;History&rdquo;, the requirement (section 4) to Preserve
1944 its Title (section 1) will typically require changing the actual
1945 title.
1946 </p>
1947 </li><li> TERMINATION
1948
1949 <p>You may not copy, modify, sublicense, or distribute the Document
1950 except as expressly provided under this License.  Any attempt
1951 otherwise to copy, modify, sublicense, or distribute it is void, and
1952 will automatically terminate your rights under this License.
1953 </p>
1954 <p>However, if you cease all violation of this License, then your license
1955 from a particular copyright holder is reinstated (a) provisionally,
1956 unless and until the copyright holder explicitly and finally
1957 terminates your license, and (b) permanently, if the copyright holder
1958 fails to notify you of the violation by some reasonable means prior to
1959 60 days after the cessation.
1960 </p>
1961 <p>Moreover, your license from a particular copyright holder is
1962 reinstated permanently if the copyright holder notifies you of the
1963 violation by some reasonable means, this is the first time you have
1964 received notice of violation of this License (for any work) from that
1965 copyright holder, and you cure the violation prior to 30 days after
1966 your receipt of the notice.
1967 </p>
1968 <p>Termination of your rights under this section does not terminate the
1969 licenses of parties who have received copies or rights from you under
1970 this License.  If your rights have been terminated and not permanently
1971 reinstated, receipt of a copy of some or all of the same material does
1972 not give you any rights to use it.
1973 </p>
1974 </li><li> FUTURE REVISIONS OF THIS LICENSE
1975
1976 <p>The Free Software Foundation may publish new, revised versions
1977 of the GNU Free Documentation License from time to time.  Such new
1978 versions will be similar in spirit to the present version, but may
1979 differ in detail to address new problems or concerns.  See
1980 <a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>.
1981 </p>
1982 <p>Each version of the License is given a distinguishing version number.
1983 If the Document specifies that a particular numbered version of this
1984 License &ldquo;or any later version&rdquo; applies to it, you have the option of
1985 following the terms and conditions either of that specified version or
1986 of any later version that has been published (not as a draft) by the
1987 Free Software Foundation.  If the Document does not specify a version
1988 number of this License, you may choose any version ever published (not
1989 as a draft) by the Free Software Foundation.  If the Document
1990 specifies that a proxy can decide which future versions of this
1991 License can be used, that proxy&rsquo;s public statement of acceptance of a
1992 version permanently authorizes you to choose that version for the
1993 Document.
1994 </p>
1995 </li><li> RELICENSING
1996
1997 <p>&ldquo;Massive Multiauthor Collaboration Site&rdquo; (or &ldquo;MMC Site&rdquo;) means any
1998 World Wide Web server that publishes copyrightable works and also
1999 provides prominent facilities for anybody to edit those works.  A
2000 public wiki that anybody can edit is an example of such a server.  A
2001 &ldquo;Massive Multiauthor Collaboration&rdquo; (or &ldquo;MMC&rdquo;) contained in the
2002 site means any set of copyrightable works thus published on the MMC
2003 site.
2004 </p>
2005 <p>&ldquo;CC-BY-SA&rdquo; means the Creative Commons Attribution-Share Alike 3.0
2006 license published by Creative Commons Corporation, a not-for-profit
2007 corporation with a principal place of business in San Francisco,
2008 California, as well as future copyleft versions of that license
2009 published by that same organization.
2010 </p>
2011 <p>&ldquo;Incorporate&rdquo; means to publish or republish a Document, in whole or
2012 in part, as part of another Document.
2013 </p>
2014 <p>An MMC is &ldquo;eligible for relicensing&rdquo; if it is licensed under this
2015 License, and if all works that were first published under this License
2016 somewhere other than this MMC, and subsequently incorporated in whole
2017 or in part into the MMC, (1) had no cover texts or invariant sections,
2018 and (2) were thus incorporated prior to November 1, 2008.
2019 </p>
2020 <p>The operator of an MMC Site may republish an MMC contained in the site
2021 under CC-BY-SA on the same site at any time before August 1, 2009,
2022 provided the MMC is eligible for relicensing.
2023 </p>
2024 </li></ol>
2025
2026 <a name="ADDENDUM_003a-How-to-use-this-License-for-your-documents"></a>
2027 <h3 class="heading">ADDENDUM: How to use this License for your documents</h3>
2028
2029 <p>To use this License in a document you have written, include a copy of
2030 the License in the document and put the following copyright and
2031 license notices just after the title page:
2032 </p>
2033 <div class="example">
2034 <pre class="example">  Copyright (C)  <var>year</var>  <var>your name</var>.
2035   Permission is granted to copy, distribute and/or modify this document
2036   under the terms of the GNU Free Documentation License, Version 1.3
2037   or any later version published by the Free Software Foundation;
2038   with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
2039   Texts.  A copy of the license is included in the section entitled ``GNU
2040   Free Documentation License''.
2041 </pre></div>
2042
2043 <p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
2044 replace the &ldquo;with&hellip;Texts.&rdquo; line with this:
2045 </p>
2046 <div class="example">
2047 <pre class="example">    with the Invariant Sections being <var>list their titles</var>, with
2048     the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
2049     being <var>list</var>.
2050 </pre></div>
2051
2052 <p>If you have Invariant Sections without Cover Texts, or some other
2053 combination of the three, merge those two alternatives to suit the
2054 situation.
2055 </p>
2056 <p>If your document contains nontrivial examples of program code, we
2057 recommend releasing these examples in parallel under your choice of
2058 free software license, such as the GNU General Public License,
2059 to permit their use in free software.
2060 </p>
2061
2062
2063
2064 <hr>
2065 <a name="Procedure-Index"></a>
2066 <div class="header">
2067 <p>
2068 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>
2069 </div>
2070 <a name="Procedure-Index-1"></a>
2071 <h2 class="unnumbered">Procedure Index</h2>
2072
2073 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Procedure-Index_fn_letter-A"><b>A</b></a>
2074  &nbsp; 
2075 <a class="summary-letter" href="#Procedure-Index_fn_letter-B"><b>B</b></a>
2076  &nbsp; 
2077 <a class="summary-letter" href="#Procedure-Index_fn_letter-C"><b>C</b></a>
2078  &nbsp; 
2079 <a class="summary-letter" href="#Procedure-Index_fn_letter-D"><b>D</b></a>
2080  &nbsp; 
2081 <a class="summary-letter" href="#Procedure-Index_fn_letter-E"><b>E</b></a>
2082  &nbsp; 
2083 <a class="summary-letter" href="#Procedure-Index_fn_letter-G"><b>G</b></a>
2084  &nbsp; 
2085 <a class="summary-letter" href="#Procedure-Index_fn_letter-H"><b>H</b></a>
2086  &nbsp; 
2087 <a class="summary-letter" href="#Procedure-Index_fn_letter-I"><b>I</b></a>
2088  &nbsp; 
2089 <a class="summary-letter" href="#Procedure-Index_fn_letter-K"><b>K</b></a>
2090  &nbsp; 
2091 <a class="summary-letter" href="#Procedure-Index_fn_letter-M"><b>M</b></a>
2092  &nbsp; 
2093 <a class="summary-letter" href="#Procedure-Index_fn_letter-O"><b>O</b></a>
2094  &nbsp; 
2095 <a class="summary-letter" href="#Procedure-Index_fn_letter-P"><b>P</b></a>
2096  &nbsp; 
2097 <a class="summary-letter" href="#Procedure-Index_fn_letter-R"><b>R</b></a>
2098  &nbsp; 
2099 <a class="summary-letter" href="#Procedure-Index_fn_letter-S"><b>S</b></a>
2100  &nbsp; 
2101 <a class="summary-letter" href="#Procedure-Index_fn_letter-X"><b>X</b></a>
2102  &nbsp; 
2103 </td></tr></table>
2104 <table class="index-fn" border="0">
2105 <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
2106 <tr><td colspan="4"> <hr></td></tr>
2107 <tr><th><a name="Procedure-Index_fn_letter-A">A</a></th><td></td><td></td></tr>
2108 <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>
2109 <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>
2110 <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>
2111 <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>
2112 <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>
2113 <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>
2114 <tr><td colspan="4"> <hr></td></tr>
2115 <tr><th><a name="Procedure-Index_fn_letter-B">B</a></th><td></td><td></td></tr>
2116 <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>
2117 <tr><td colspan="4"> <hr></td></tr>
2118 <tr><th><a name="Procedure-Index_fn_letter-C">C</a></th><td></td><td></td></tr>
2119 <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>
2120 <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>
2121 <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>
2122 <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>
2123 <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>
2124 <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>
2125 <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>
2126 <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>
2127 <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>
2128 <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>
2129 <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>
2130 <tr><td colspan="4"> <hr></td></tr>
2131 <tr><th><a name="Procedure-Index_fn_letter-D">D</a></th><td></td><td></td></tr>
2132 <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>
2133 <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>
2134 <tr><td colspan="4"> <hr></td></tr>
2135 <tr><th><a name="Procedure-Index_fn_letter-E">E</a></th><td></td><td></td></tr>
2136 <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>
2137 <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>
2138 <tr><td colspan="4"> <hr></td></tr>
2139 <tr><th><a name="Procedure-Index_fn_letter-G">G</a></th><td></td><td></td></tr>
2140 <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>
2141 <tr><td colspan="4"> <hr></td></tr>
2142 <tr><th><a name="Procedure-Index_fn_letter-H">H</a></th><td></td><td></td></tr>
2143 <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>
2144 <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>
2145 <tr><td colspan="4"> <hr></td></tr>
2146 <tr><th><a name="Procedure-Index_fn_letter-I">I</a></th><td></td><td></td></tr>
2147 <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>
2148 <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>
2149 <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>
2150 <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>
2151 <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>
2152 <tr><td colspan="4"> <hr></td></tr>
2153 <tr><th><a name="Procedure-Index_fn_letter-K">K</a></th><td></td><td></td></tr>
2154 <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>
2155 <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>
2156 <tr><td colspan="4"> <hr></td></tr>
2157 <tr><th><a name="Procedure-Index_fn_letter-M">M</a></th><td></td><td></td></tr>
2158 <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>
2159 <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>
2160 <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>
2161 <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>
2162 <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>
2163 <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>
2164 <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>
2165 <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>
2166 <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>
2167 <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>
2168 <tr><td colspan="4"> <hr></td></tr>
2169 <tr><th><a name="Procedure-Index_fn_letter-O">O</a></th><td></td><td></td></tr>
2170 <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>
2171 <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>
2172 <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>
2173 <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>
2174 <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>
2175 <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>
2176 <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>
2177 <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>
2178 <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>
2179 <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>
2180 <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>
2181 <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>
2182 <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>
2183 <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>
2184 <tr><td colspan="4"> <hr></td></tr>
2185 <tr><th><a name="Procedure-Index_fn_letter-P">P</a></th><td></td><td></td></tr>
2186 <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>
2187 <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>
2188 <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>
2189 <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>
2190 <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>
2191 <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>
2192 <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>
2193 <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>
2194 <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>
2195 <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>
2196 <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>
2197 <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>
2198 <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>
2199 <tr><td colspan="4"> <hr></td></tr>
2200 <tr><th><a name="Procedure-Index_fn_letter-R">R</a></th><td></td><td></td></tr>
2201 <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>
2202 <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>
2203 <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>
2204 <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>
2205 <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>
2206 <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>
2207 <tr><td colspan="4"> <hr></td></tr>
2208 <tr><th><a name="Procedure-Index_fn_letter-S">S</a></th><td></td><td></td></tr>
2209 <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>
2210 <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>
2211 <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>
2212 <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>
2213 <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>
2214 <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>
2215 <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>
2216 <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>
2217 <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>
2218 <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>
2219 <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>
2220 <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>
2221 <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>
2222 <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>
2223 <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>
2224 <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>
2225 <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>
2226 <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>
2227 <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>
2228 <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>
2229 <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>
2230 <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>
2231 <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>
2232 <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>
2233 <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>
2234 <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>
2235 <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>
2236 <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>
2237 <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>
2238 <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>
2239 <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>
2240 <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>
2241 <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>
2242 <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>
2243 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dcertificate_002dtype_002dpriority_0021"><code>set-session-certificate-type-priority!</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-set_002dsession_002dcipher_002dpriority_0021"><code>set-session-cipher-priority!</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-set_002dsession_002dcompression_002dmethod_002dpriority_0021"><code>set-session-compression-method-priority!</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-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>
2247 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002ddefault_002dexport_002dpriority_0021"><code>set-session-default-export-priority!</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-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>
2249 <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>
2250 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dkx_002dpriority_0021"><code>set-session-kx-priority!</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2251 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dmac_002dpriority_0021"><code>set-session-mac-priority!</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2252 <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>
2253 <tr><td></td><td valign="top"><a href="#index-set_002dsession_002dprotocol_002dpriority_0021"><code>set-session-protocol-priority!</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Guile-Reference">Guile Reference</a></td></tr>
2254 <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>
2255 <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>
2256 <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>
2257 <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>
2258 <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>
2259 <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>
2260 <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>
2261 <tr><td colspan="4"> <hr></td></tr>
2262 <tr><th><a name="Procedure-Index_fn_letter-X">X</a></th><td></td><td></td></tr>
2263 <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>
2264 <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>
2265 <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>
2266 <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>
2267 <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>
2268 <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>
2269 <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>
2270 <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>
2271 <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>
2272 <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>
2273 <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>
2274 <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>
2275 <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>
2276 <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>
2277 <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>
2278 <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>
2279 <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>
2280 <tr><td colspan="4"> <hr></td></tr>
2281 </table>
2282 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Procedure-Index_fn_letter-A"><b>A</b></a>
2283  &nbsp; 
2284 <a class="summary-letter" href="#Procedure-Index_fn_letter-B"><b>B</b></a>
2285  &nbsp; 
2286 <a class="summary-letter" href="#Procedure-Index_fn_letter-C"><b>C</b></a>
2287  &nbsp; 
2288 <a class="summary-letter" href="#Procedure-Index_fn_letter-D"><b>D</b></a>
2289  &nbsp; 
2290 <a class="summary-letter" href="#Procedure-Index_fn_letter-E"><b>E</b></a>
2291  &nbsp; 
2292 <a class="summary-letter" href="#Procedure-Index_fn_letter-G"><b>G</b></a>
2293  &nbsp; 
2294 <a class="summary-letter" href="#Procedure-Index_fn_letter-H"><b>H</b></a>
2295  &nbsp; 
2296 <a class="summary-letter" href="#Procedure-Index_fn_letter-I"><b>I</b></a>
2297  &nbsp; 
2298 <a class="summary-letter" href="#Procedure-Index_fn_letter-K"><b>K</b></a>
2299  &nbsp; 
2300 <a class="summary-letter" href="#Procedure-Index_fn_letter-M"><b>M</b></a>
2301  &nbsp; 
2302 <a class="summary-letter" href="#Procedure-Index_fn_letter-O"><b>O</b></a>
2303  &nbsp; 
2304 <a class="summary-letter" href="#Procedure-Index_fn_letter-P"><b>P</b></a>
2305  &nbsp; 
2306 <a class="summary-letter" href="#Procedure-Index_fn_letter-R"><b>R</b></a>
2307  &nbsp; 
2308 <a class="summary-letter" href="#Procedure-Index_fn_letter-S"><b>S</b></a>
2309  &nbsp; 
2310 <a class="summary-letter" href="#Procedure-Index_fn_letter-X"><b>X</b></a>
2311  &nbsp; 
2312 </td></tr></table>
2313
2314 <hr>
2315 <a name="Concept-Index"></a>
2316 <div class="header">
2317 <p>
2318 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>
2319 </div>
2320 <a name="Concept-Index-1"></a>
2321 <h2 class="unnumbered">Concept Index</h2>
2322
2323 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Concept-Index_cp_letter-C"><b>C</b></a>
2324  &nbsp; 
2325 <a class="summary-letter" href="#Concept-Index_cp_letter-E"><b>E</b></a>
2326  &nbsp; 
2327 <a class="summary-letter" href="#Concept-Index_cp_letter-F"><b>F</b></a>
2328  &nbsp; 
2329 <a class="summary-letter" href="#Concept-Index_cp_letter-G"><b>G</b></a>
2330  &nbsp; 
2331 <a class="summary-letter" href="#Concept-Index_cp_letter-H"><b>H</b></a>
2332  &nbsp; 
2333 <a class="summary-letter" href="#Concept-Index_cp_letter-S"><b>S</b></a>
2334  &nbsp; 
2335 </td></tr></table>
2336 <table class="index-cp" border="0">
2337 <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
2338 <tr><td colspan="4"> <hr></td></tr>
2339 <tr><th><a name="Concept-Index_cp_letter-C">C</a></th><td></td><td></td></tr>
2340 <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>
2341 <tr><td colspan="4"> <hr></td></tr>
2342 <tr><th><a name="Concept-Index_cp_letter-E">E</a></th><td></td><td></td></tr>
2343 <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>
2344 <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>
2345 <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>
2346 <tr><td colspan="4"> <hr></td></tr>
2347 <tr><th><a name="Concept-Index_cp_letter-F">F</a></th><td></td><td></td></tr>
2348 <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>
2349 <tr><td colspan="4"> <hr></td></tr>
2350 <tr><th><a name="Concept-Index_cp_letter-G">G</a></th><td></td><td></td></tr>
2351 <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>
2352 <tr><td colspan="4"> <hr></td></tr>
2353 <tr><th><a name="Concept-Index_cp_letter-H">H</a></th><td></td><td></td></tr>
2354 <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>
2355 <tr><td colspan="4"> <hr></td></tr>
2356 <tr><th><a name="Concept-Index_cp_letter-S">S</a></th><td></td><td></td></tr>
2357 <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>
2358 <tr><td colspan="4"> <hr></td></tr>
2359 </table>
2360 <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Concept-Index_cp_letter-C"><b>C</b></a>
2361  &nbsp; 
2362 <a class="summary-letter" href="#Concept-Index_cp_letter-E"><b>E</b></a>
2363  &nbsp; 
2364 <a class="summary-letter" href="#Concept-Index_cp_letter-F"><b>F</b></a>
2365  &nbsp; 
2366 <a class="summary-letter" href="#Concept-Index_cp_letter-G"><b>G</b></a>
2367  &nbsp; 
2368 <a class="summary-letter" href="#Concept-Index_cp_letter-H"><b>H</b></a>
2369  &nbsp; 
2370 <a class="summary-letter" href="#Concept-Index_cp_letter-S"><b>S</b></a>
2371  &nbsp; 
2372 </td></tr></table>
2373
2374 <hr>
2375
2376
2377
2378 </body>
2379 </html>