diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-12-28 17:51:03 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-12-28 17:51:03 +0000 |
commit | 9ef532b4ef32c156d3d48a81b3e27914fdc7b237 (patch) | |
tree | 30e2c8952c2874f608fa16ab0d2a454e97347433 /eclass | |
parent | Stable on ppc wrt bug 203560 (diff) | |
download | gentoo-2-9ef532b4ef32c156d3d48a81b3e27914fdc7b237.tar.gz gentoo-2-9ef532b4ef32c156d3d48a81b3e27914fdc7b237.tar.bz2 gentoo-2-9ef532b4ef32c156d3d48a81b3e27914fdc7b237.zip |
Revert accidental commit of ssl-cert.eclass.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ssl-cert.eclass | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass index c33eb3ed69f7..5283e2f10dd0 100644 --- a/eclass/ssl-cert.eclass +++ b/eclass/ssl-cert.eclass @@ -1,25 +1,17 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.13 2007/12/28 17:48:34 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.14 2007/12/28 17:51:03 ulm Exp $ # -# @ECLASS: ssl-cert.eclass -# @MAINTAINER: # Author: Max Kalika <max@gentoo.org> -# @BLURB: Eclass for SSL certificates -# @DESCRIPTION: +# # This eclass implements standard installation procedure for installing # self-signed SSL certificates. -# @EXAMPLE: -# "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem} # Conditionally depend on OpenSSL: allows inheretence # without pulling extra packages if not needed DEPEND="ssl? ( dev-libs/openssl )" IUSE="ssl" -# @FUNCTION: gen_cnf -# @USAGE: -# @DESCRIPTION: # Initializes variables and generates the needed # OpenSSL configuration file and a CA serial file # @@ -68,10 +60,6 @@ gen_cnf() { return $? } -# @FUNCTION: get_base -# @USAGE: [if_ca] -# @RETURN: <base path> -# @DESCRIPTION: # Simple function to determine whether we're creating # a CA (which should only be done once) or final part # @@ -84,9 +72,6 @@ get_base() { fi } -# @FUNCTION: gen_key -# @USAGE: <base path> -# @DESCRIPTION: # Generates an RSA key # # Access: private @@ -100,9 +85,6 @@ gen_key() { return $? } -# @FUNCTION: gen_csr -# @USAGE: <base path> -# @DESCRIPTION: # Generates a certificate signing request using # the key made by gen_key() # @@ -117,9 +99,6 @@ gen_csr() { return $? } -# @FUNCTION: gen_crt -# @USAGE: <base path> -# @DESCRIPTION: # Generates either a self-signed CA certificate using # the csr and key made by gen_csr() and gen_key() or # a signed server certificate using the CA cert previously @@ -146,9 +125,6 @@ gen_crt() { return $? } -# @FUNCTION: gen_pem -# @USAGE: <base path> -# @DESCRIPTION: # Generates a PEM file by concatinating the key # and cert file created by gen_key() and gen_cert() # @@ -232,12 +208,11 @@ docert() { fi } -# @FUNCTION: install_cert -# @USAGE: <certificates> -# @DESCRIPTION: -# Uses all the private functions above to generate and install the -# requested certificates. -# <certificates> are full pathnames relative to ROOT, without extension. +# Uses all the private functions above to generate +# and install the requested certificates +# +# Usage: install_cert <certificates> +# where <certificates> are full pathnames relative to ROOT, without extension. # # Example: "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem} # |