summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-12-28 17:51:03 +0000
committerUlrich Müller <ulm@gentoo.org>2007-12-28 17:51:03 +0000
commit07eb7b726c29b5994f022aa0bf19c8dcec4776ca (patch)
tree2c7be59d84c5d37480fb599db274c573622f710e /eclass/ssl-cert.eclass
parentStable on ppc wrt bug 203560 (diff)
downloadhistorical-07eb7b726c29b5994f022aa0bf19c8dcec4776ca.tar.gz
historical-07eb7b726c29b5994f022aa0bf19c8dcec4776ca.tar.bz2
historical-07eb7b726c29b5994f022aa0bf19c8dcec4776ca.zip
Revert accidental commit of ssl-cert.eclass.
Diffstat (limited to 'eclass/ssl-cert.eclass')
-rw-r--r--eclass/ssl-cert.eclass39
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}
#