aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/x509/x509self.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-03-30 18:27:18 +0000
committerlloyd <[email protected]>2009-03-30 18:27:18 +0000
commit96d6eb6f29c55e16a37cf11899547886f735b065 (patch)
tree9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/cert/x509/x509self.cpp
parent3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff)
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
Diffstat (limited to 'src/cert/x509/x509self.cpp')
-rw-r--r--src/cert/x509/x509self.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/cert/x509/x509self.cpp b/src/cert/x509/x509self.cpp
index 6c3baae9b..8afb22a7e 100644
--- a/src/cert/x509/x509self.cpp
+++ b/src/cert/x509/x509self.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* PKCS #10/Self Signed Cert Creation Source File *
-* (C) 1999-2008 Jack Lloyd *
-*************************************************/
+/*
+* PKCS #10/Self Signed Cert Creation
+* (C) 1999-2008 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/x509self.h>
#include <botan/x509_ext.h>
@@ -16,9 +18,9 @@ namespace Botan {
namespace {
-/*************************************************
-* Shared setup for self-signed items *
-*************************************************/
+/*
+* Shared setup for self-signed items
+*/
MemoryVector<byte> shared_setup(const X509_Cert_Options& opts,
const Private_Key& key)
{
@@ -36,9 +38,9 @@ MemoryVector<byte> shared_setup(const X509_Cert_Options& opts,
return key_encoder.read_all();
}
-/*************************************************
-* Load information from the X509_Cert_Options *
-*************************************************/
+/*
+* Load information from the X509_Cert_Options
+*/
void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn,
AlternativeName& subject_alt)
{
@@ -58,9 +60,9 @@ void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn,
namespace X509 {
-/*************************************************
-* Create a new self-signed X.509 certificate *
-*************************************************/
+/*
+* Create a new self-signed X.509 certificate
+*/
X509_Certificate create_self_signed_cert(const X509_Cert_Options& opts,
const Private_Key& key,
RandomNumberGenerator& rng)
@@ -96,9 +98,9 @@ X509_Certificate create_self_signed_cert(const X509_Cert_Options& opts,
extensions);
}
-/*************************************************
-* Create a PKCS #10 certificate request *
-*************************************************/
+/*
+* Create a PKCS #10 certificate request
+*/
PKCS10_Request create_cert_req(const X509_Cert_Options& opts,
const Private_Key& key,
RandomNumberGenerator& rng)