info_TEXINFOS = gnutls.texi
gnutls_TEXINFOS = gnutls.texi fdl.texi error_codes.texi \
+ gnutls-api.texi gnutls-extra-api.texi x509-api.texi pgp-api.texi \
internals.eps internals.png layers.eps layers.png \
pgp1.eps pgp1.png x509-1.eps x509-1.png
error_codes.texi: ../lib/gnutls_errors_int.h ../lib/gnutls_errors.c ../src/errcodes.c
-../src/errcodes > error_codes.texi
+
+gnutls-api.texi: ../lib/gnutls-api.texi
+ -scripts/sort2.pl < ../lib/gnutls-api.texi > gnutls-api.texi
+
+gnutls-extra-api.texi: ../libextra/gnutls-extra-api.texi
+ -scripts/sort2.pl < ../libextra/gnutls-extra-api.texi > gnutls-extra-api.texi
+
+x509-api.texi: ../lib/x509/x509-api.texi
+ -scripts/sort2.pl < ../lib/x509/x509-api.texi > x509-api.texi
+
+pgp-api.texi: ../libextra/openpgp/pgp-api.texi
+ -scripts/sort2.pl < ../libextra/openpgp/pgp-api.texi > pgp-api.texi
The prototypes for the following functions lie in
@file{gnutls/gnutls.h}.
+@include gnutls-api.texi
+
@section X.509 certificate functions
@anchor{sec:x509api}
@cindex X.509 Functions
The following functions are to be used for X.509 certificate handling.
Their prototypes lie in @file{gnutls/x509.h}.
+@include x509-api.texi
+
@section @acronym{GnuTLS-extra} functions
@cindex @acronym{GnuTLS-extra} functions
called @code{gnutls-extra}. The prototypes for this library lie in
@file{gnutls/extra.h}.
+@include gnutls-extra-api.texi
+
@section OpenPGP functions
@cindex OpenPGP functions
@anchor{sec:openpgpapi}
The following functions are to be used for OpenPGP certificate
handling. Their prototypes lie in @file{gnutls/openpgp.h}.
+@include pgp-api.texi
+
@chapter Certificate to XML convertion functions
@cindex Certificate to XML convertion
--- /dev/null
+#!/usr/bin/perl
+
+sub key_of_record {
+ local($record) = @_;
+
+ # Split record into lines:
+ my @lines = split /\n/, $record;
+
+ my ($i) = 1;
+ my ($key) = $lines[$i];
+
+ while( !($key =~ /^\@deftypefun/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
+
+ $key = $1 if $key =~ /^\@deftypefun {.*} {(.*)}/;
+
+# print STDERR "key $1\n";
+
+ return $key;
+}
+
+$/="@end deftypefun"; # Records are separated by blank lines.
+@records = <>; # Read in whole file, one record per array element.
+
+@records = sort { key_of_record($a) cmp key_of_record($b) } @records;
+print @records;