]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
'How to use TLS in application protocols' section was moved to introduction to TLS.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 13 Oct 2011 15:30:08 +0000 (17:30 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 13 Oct 2011 15:30:34 +0000 (17:30 +0200)
Fixes in perl.

12 files changed:
doc/Makefile.am
doc/cha-intro-tls.texi
doc/gnutls.texi
doc/latex/Makefile.am
doc/latex/gnutls.tex
doc/scripts/gdoc
doc/scripts/mytexi2latex
doc/scripts/sort1.pl
doc/scripts/split-texi.pl
doc/scripts/split.pl
doc/sec-tls-app.texi [moved from doc/cha-tls-app.texi with 97% similarity]
tests/nist-pkits/build-chain

index 8f4d1212ce081068369f792d33fa93d4302dbb11..574bd7ed0897d9b57ebbe62e1b9359bedc212a6c 100644 (file)
@@ -35,7 +35,7 @@ gnutls_TEXINFOS = gnutls.texi fdl-1.3.texi lgpl-2.1.texi gpl-3.0.texi \
        cha-ciphersuites.texi cha-copying.texi cha-functions.texi       \
        cha-gtls-app.texi cha-internals.texi cha-intro-tls.texi         \
        cha-library.texi cha-preface.texi cha-programs.texi             \
-       cha-tls-app.texi cha-errors.texi cha-support.texi
+       sec-tls-app.texi cha-errors.texi cha-support.texi
 
 # Examples.
 gnutls_TEXINFOS += examples/ex-client1.c examples/ex-client2.c         \
index 58815369fca18956a5672adc2e718f7507985921..c25cfe184178c729266819f1d9d08c13e42597fa 100644 (file)
@@ -29,6 +29,7 @@ noted otherwise.
 * The TLS Handshake Protocol::
 * TLS Extensions::
 * Selecting cryptographic key sizes::
+* How to use TLS in application protocols::
 * On SSL 2 and older protocols::
 @end menu
 
@@ -696,6 +697,8 @@ Those functions will convert a human understandable security parameter
 of @code{gnutls_sec_param_t} type, to a number of bits suitable for a public 
 key algorithm.
 
+@include sec-tls-app.texi
+
 @node On SSL 2 and older protocols
 @section On SSL 2 and older protocols
 @cindex SSL 2
index 07bf8250edbeeb9b9d4273948fe8eb507ce758fa..f4e6c803fc3a5a37b8d87090973fc198e9222204 100644 (file)
@@ -152,7 +152,6 @@ Documentation License''.
 * Authentication methods::
 * More on certificate authentication::
 * How to use GnuTLS in applications::
-* How to use TLS in application protocols::
 * Included programs::
 * Internal architecture of GnuTLS::
 * Support::
@@ -178,8 +177,6 @@ Documentation License''.
 
 @include cha-gtls-app.texi
 
-@include cha-tls-app.texi
-
 @include cha-programs.texi
 
 @include cha-internals.texi
index 3a030d1565bf1a14891fd9eec80030bb79d6f485..08259713c388ed1ea326857833ba2045c9562b7e 100644 (file)
@@ -2,7 +2,7 @@ TEX_OBJECTS = gnutls.tex macros.tex macros-epub.tex fdl.tex cover.tex gnutls.bib
        cover-epub.tex
 
 GEN_TEX_OBJECTS = cha-preface.tex cha-library.tex cha-intro-tls.tex cha-auth.tex \
-  cha-cert-auth.tex cha-gtls-app.tex cha-tls-app.tex cha-programs.tex cha-support.tex \
+  cha-cert-auth.tex cha-gtls-app.tex sec-tls-app.tex cha-programs.tex cha-support.tex \
   cha-functions.tex error_codes.tex cha-ciphersuites.tex algorithms.tex \
   cha-errors.tex alerts.tex cha-internals.tex
 
@@ -24,7 +24,7 @@ cha-cert-auth.tex: ../cha-cert-auth.texi
 cha-gtls-app.tex: ../cha-gtls-app.texi
        ../scripts/mytexi2latex $< > $@
 
-cha-tls-app.tex: ../cha-tls-app.texi
+sec-tls-app.tex: ../sec-tls-app.texi
        ../scripts/mytexi2latex $< > $@
 
 cha-programs.tex: ../cha-programs.texi
index 89b92e54e932776a88d6d52d3812e4006311b3af..bf4aaafc02a5f93757b2378318a0eccdb80ed4eb 100644 (file)
@@ -68,8 +68,6 @@
 
 \input{cha-gtls-app}
 
-\input{cha-tls-app}
-
 \input{cha-programs}
 
 \input{cha-internals}
index 7485461ad6a26b010a95c6ab7d8dd5d17cb518fd..91d76c0205b5be4b9df6e7369e9f0a627fab833b 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl "$0" ${1+"$@"}'
+  & eval 'exec perl "$0" $argv:q'
+    if 0;
 
 ## Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
 ##                    added -texinfo, -listfunc, -pkg-name
@@ -314,7 +316,7 @@ sub repstr {
 
 #    print "pattern $pattern matched 1=$match1 2=$match2 3=$match3 4=$match4 replace $repl yielded $output interpolated $return\n";
 
-    $return;
+    return;
 }
 
 sub just_highlight {
@@ -371,7 +373,7 @@ sub output_texinfo {
     }
     foreach $section (@{$args{'sectionlist'}}) {
        print "\n\@strong{$section:} " if $section ne $section_default;
-       $args{'sections'}{$section} =~ s:([{}]):\@\1:gs;
+       $args{'sections'}{$section} =~ s:([{}]):\@$1:gs;
        output_highlight($args{'sections'}{$section});
     }
     print "\@end deftypefun\n\n";
@@ -515,7 +517,7 @@ sub output_tex {
     foreach $section (@{$args{'sectionlist'}}) {
        $sec = $section;
        $sec =~ s/_/\\_/g;
-       $sec =~ s/#([a-zA-Z\_]+)/{\\it \1}/g;
+       $sec =~ s/#([a-zA-Z\_]+)/{\\it $1}/g;
 
        print "\n\\begin{function$sec}\n";
        $out = $args{'sections'}{$section};
@@ -528,7 +530,7 @@ sub output_tex {
        $out =~ s/\n\n/\n/g;
        $out =~ s/\\:/:/g;
        $out =~ s/\-\>/\$\\rightarrow\$/g;
-       $out =~ s/([0-9]+)\^([0-9]+)/\$\{\1\}\^\{\2\}\$/g;
+       $out =~ s/([0-9]+)\^([0-9]+)/\$\{$1\}\^\{$2\}\$/g;
 
        print $out;
        print "\\end{function$sec}\n";
@@ -547,8 +549,6 @@ sub output_enum_tex {
     my $check;
     my $type;
 
-    $func =~ s/_/\\_/g;
-
     print "\n\n\\begin{enum}\n";
     $name =~ s/_/\\_/g;
     print "\\enumTitle{". $name . "}\n";
index 1ddce5dd2cb1422a36fd4b5705dfb14164d173c5..4b9518e334193cb5b9273f345995e64c0234798d 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}'
+  & eval 'exec perl -wST "$0" $argv:q'
+    if 0;
 
 use constant NORMAL => 0;
 use constant SKIP => 1;
index 504394d4cf7a4bc2c86fb355e4b7b8f0dd5609e9..0de818248bd7068199778290fdced8d8d4224d5e 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}'
+  & eval 'exec perl -wST "$0" $argv:q'
+    if 0;
 
 sub key_of_record {
   local($record) = @_;
index bd6e11e1c2bf7be8622588044802e0718ba2e9e2..a7ee518192862e666d5937d2bef5e9d749699404 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+  & eval 'exec perl -wS "$0" $argv:q'
+    if 0;
 
 $dir = shift;
 $param2 = shift;
@@ -19,9 +21,9 @@ sub key_of_record {
   my ($key) = $lines[$i]; 
 
   if ($enum == 1) {
-    while( !($key =~ m/^$\@float Table,(.*)$/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
+    while( !($key =~ m/^\@float Table,(.*)$/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
   } else {
-    while( !($key =~ m/^$\\functionTitle\{(.*)\}/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
+    while( !($key =~ m/^\\functionTitle\{(.*)\}/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
   }
 
   return $key;
index ed716344a80fc5a64965f83ec202efcf3bafe568..f6e900c4383259c14f2f2336b560d68ed1dea68c 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+  & eval 'exec perl -wS "$0" $argv:q'
+    if 0;
 
 $dir = shift;
 $param2 = shift;
@@ -19,9 +21,9 @@ sub key_of_record {
   my ($key) = $lines[$i]; 
 
   if ($enum == 1) {
-    while( !($key =~ m/^$\\enumTitle\{(.*)\}/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
+    while( !($key =~ m/^\\enumTitle\{(.*)\}/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
   } else {
-    while( !($key =~ m/^$\\functionTitle\{(.*)\}/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
+    while( !($key =~ m/^\\functionTitle\{(.*)\}/) && ($i < 5)) { $i=$i+1; $key = $lines[$i]; }
   }
 
   return $key;
similarity index 97%
rename from doc/cha-tls-app.texi
rename to doc/sec-tls-app.texi
index b8e83ed2a8a7b21bfcefa003a5f797da763d107d..89a10e7039b4c8fa6861593454ad9eefe17f6297 100644 (file)
@@ -1,5 +1,5 @@
 @node How to use TLS in application protocols
-@chapter How to use @acronym{TLS} in application protocols
+@section How to use @acronym{TLS} in application protocols
 
 This chapter is intended to provide some hints on how to use the
 @acronym{TLS} over simple custom made application protocols.  The
@@ -12,7 +12,7 @@ but may be extended to other ones too.
 @end menu
 
 @node Separate ports
-@section Separate ports
+@subsection Separate ports
 
 Traditionally @acronym{SSL} was used in application protocols by
 assigning a new port number for the secure services. That way two
@@ -39,7 +39,7 @@ is a limitation on the available privileged ports, this approach was
 soon obsoleted.
 
 @node Upward negotiation
-@section Upward negotiation
+@subsection Upward negotiation
 
 Other application protocols@footnote{See LDAP, IMAP etc.}  use a
 different approach to enable the secure layer.  They use something
index 6a125cabca1d62979c46809127a491a43924fed0..e625a8cf74949cdf16d0efd6da4678b572434bf9 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}'
+  & eval 'exec perl -wST "$0" $argv:q'
+    if 0;
 
 use strict;