summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-12-09 08:06:11 +0000
committerUlrich Müller <ulm@gentoo.org>2007-12-09 08:06:11 +0000
commitc841cbb9013e3ab43b36b25bdc8ef725494d7700 (patch)
tree19c23f4950132af70dbb0bd913600385b3319869 /eclass/ssl-cert.eclass
parentcleanup (diff)
downloadgentoo-2-c841cbb9013e3ab43b36b25bdc8ef725494d7700.tar.gz
gentoo-2-c841cbb9013e3ab43b36b25bdc8ef725494d7700.tar.bz2
gentoo-2-c841cbb9013e3ab43b36b25bdc8ef725494d7700.zip
Add more documentation to function install_cert.
Output a deprecation warning in docert.
Diffstat (limited to 'eclass/ssl-cert.eclass')
-rw-r--r--eclass/ssl-cert.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index e44102552f2a..f88d038b0e11 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -1,6 +1,6 @@
# 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.10 2007/12/07 22:41:04 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.11 2007/12/09 08:06:11 ulm Exp $
#
# Author: Max Kalika <max@gentoo.org>
#
@@ -144,6 +144,9 @@ gen_pem() {
#
# Access: public
docert() {
+ ewarn "Function \"docert\" is deprecated for security reasons."
+ ewarn "\"install_cert\" should be used instead. See bug #174759."
+
if [ $# -lt 1 ] ; then
eerror "At least one argument needed"
return 1;
@@ -208,6 +211,11 @@ docert() {
# 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}
+#
# Access: public
install_cert() {
if [ $# -lt 1 ] ; then