summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-11-20 15:46:44 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-11-20 15:46:44 +0000
commitd0f6d9bdff1a735adc4bce826cb9dda7c3bb2f21 (patch)
tree62b28e0044950204dbfc3ad626d10798c1deb1d0 /lib
parent167c16828658a60a86296f6cf5eb27c3f4154151 (diff)
Add Copyright and license.
Mention that BN_CTX_free(3) accepts NULL. Delete the useless statement that void functions return no value.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/man/BN_CTX_new.362
1 files changed, 55 insertions, 7 deletions
diff --git a/lib/libcrypto/man/BN_CTX_new.3 b/lib/libcrypto/man/BN_CTX_new.3
index 5883ae7e9c6..34fa4e33391 100644
--- a/lib/libcrypto/man/BN_CTX_new.3
+++ b/lib/libcrypto/man/BN_CTX_new.3
@@ -1,6 +1,54 @@
-.\" $OpenBSD: BN_CTX_new.3,v 1.3 2016/11/08 22:19:45 jmc Exp $
+.\" $OpenBSD: BN_CTX_new.3,v 1.4 2016/11/20 15:46:43 schwarze Exp $
+.\" OpenSSL aafbe1cc Jun 12 23:42:08 2013 +0100
.\"
-.Dd $Mdocdate: November 8 2016 $
+.\" This file was written by Ulf Moeller <ulf@openssl.org>.
+.\" Copyright (c) 2000, 2013 The OpenSSL Project. All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\"
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\"
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in
+.\" the documentation and/or other materials provided with the
+.\" distribution.
+.\"
+.\" 3. All advertising materials mentioning features or use of this
+.\" software must display the following acknowledgment:
+.\" "This product includes software developed by the OpenSSL Project
+.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+.\"
+.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+.\" endorse or promote products derived from this software without
+.\" prior written permission. For written permission, please contact
+.\" openssl-core@openssl.org.
+.\"
+.\" 5. Products derived from this software may not be called "OpenSSL"
+.\" nor may "OpenSSL" appear in their names without prior written
+.\" permission of the OpenSSL Project.
+.\"
+.\" 6. Redistributions of any form whatsoever must retain the following
+.\" acknowledgment:
+.\" "This product includes software developed by the OpenSSL Project
+.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
+.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+.\" OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd $Mdocdate: November 20 2016 $
.Dt BN_CTX_NEW 3
.Os
.Sh NAME
@@ -58,6 +106,11 @@ must be called before the
.Vt BN_CTX
may be freed by
.Fn BN_CTX_free .
+If
+.Fa c
+is a
+.Dv NULL
+pointer, no action occurs.
.Pp
.Fn BN_CTX_init
(deprecated) initializes an existing uninitialized
@@ -74,11 +127,6 @@ If the allocation fails, it returns
.Dv NULL
and sets an error code that can be obtained by
.Xr ERR_get_error 3 .
-.Pp
-.Fn BN_CTX_init
-and
-.Fn BN_CTX_free
-return no value.
.Sh SEE ALSO
.Xr bn 3 ,
.Xr BN_add 3 ,