summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2016-11-22 21:38:18 +0000
committerjmc <>2016-11-22 21:38:18 +0000
commit92269b457e9f11636c423229dcb974353c13d942 (patch)
tree4cbdfdadba503883976fbfb977c110727d3986c8 /src
parente3e505289d584ed8c2bd60dd0dc803c4acd398f2 (diff)
downloadopenbsd-92269b457e9f11636c423229dcb974353c13d942.tar.gz
openbsd-92269b457e9f11636c423229dcb974353c13d942.tar.bz2
openbsd-92269b457e9f11636c423229dcb974353c13d942.zip
various cleanup;
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/HMAC.37
-rw-r--r--src/lib/libcrypto/man/MD5.36
-rw-r--r--src/lib/libcrypto/man/OBJ_nid2obj.332
-rw-r--r--src/lib/libcrypto/man/OPENSSL_config.310
-rw-r--r--src/lib/libcrypto/man/OPENSSL_load_builtin_modules.36
-rw-r--r--src/lib/libcrypto/man/OpenSSL_add_all_algorithms.38
6 files changed, 36 insertions, 33 deletions
diff --git a/src/lib/libcrypto/man/HMAC.3 b/src/lib/libcrypto/man/HMAC.3
index fc82e77563..488a33fa80 100644
--- a/src/lib/libcrypto/man/HMAC.3
+++ b/src/lib/libcrypto/man/HMAC.3
@@ -1,13 +1,16 @@
1.\" $OpenBSD: HMAC.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: HMAC.3,v 1.3 2016/11/22 21:38:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 22 2016 $
4.Dt HMAC 3 4.Dt HMAC 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
7.Nm HMAC , 7.Nm HMAC ,
8.Nm HMAC_CTX_Init ,
8.Nm HMAC_Init , 9.Nm HMAC_Init ,
10.Nm HMAC_Init_ex ,
9.Nm HMAC_Update , 11.Nm HMAC_Update ,
10.Nm HMAC_Final , 12.Nm HMAC_Final ,
13.Nm HMAC_CTX_cleanup ,
11.Nm HMAC_cleanup 14.Nm HMAC_cleanup
12.Nd HMAC message authentication code 15.Nd HMAC message authentication code
13.Sh SYNOPSIS 16.Sh SYNOPSIS
diff --git a/src/lib/libcrypto/man/MD5.3 b/src/lib/libcrypto/man/MD5.3
index 305af8053e..98f69971b9 100644
--- a/src/lib/libcrypto/man/MD5.3
+++ b/src/lib/libcrypto/man/MD5.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: MD5.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: MD5.3,v 1.3 2016/11/22 21:38:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 22 2016 $
4.Dt MD5 3 4.Dt MD5 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -85,7 +85,7 @@
85.Fa "MD5_CTX *c" 85.Fa "MD5_CTX *c"
86.Fc 86.Fc
87.Sh DESCRIPTION 87.Sh DESCRIPTION
88MD2, MD4, and MD5 are cryptographic hash functions with a 128 bit 88MD2, MD4, and MD5 are cryptographic hash functions with a 128-bit
89output. 89output.
90.Pp 90.Pp
91.Fn MD2 , 91.Fn MD2 ,
diff --git a/src/lib/libcrypto/man/OBJ_nid2obj.3 b/src/lib/libcrypto/man/OBJ_nid2obj.3
index b4149a73aa..22cc572323 100644
--- a/src/lib/libcrypto/man/OBJ_nid2obj.3
+++ b/src/lib/libcrypto/man/OBJ_nid2obj.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: OBJ_nid2obj.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: OBJ_nid2obj.3,v 1.3 2016/11/22 21:38:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 22 2016 $
4.Dt OBJ_NID2OBJ 3 4.Dt OBJ_NID2OBJ 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -8,16 +8,16 @@
8.Nm OBJ_nid2ln , 8.Nm OBJ_nid2ln ,
9.Nm OBJ_nid2sn , 9.Nm OBJ_nid2sn ,
10.Nm OBJ_obj2nid , 10.Nm OBJ_obj2nid ,
11.Nm OBJ_txt2nid ,
12.Nm OBJ_ln2nid , 11.Nm OBJ_ln2nid ,
13.Nm OBJ_sn2nid , 12.Nm OBJ_sn2nid ,
14.Nm OBJ_cmp , 13.Nm OBJ_txt2nid ,
15.Nm OBJ_dup ,
16.Nm OBJ_txt2obj , 14.Nm OBJ_txt2obj ,
17.Nm OBJ_obj2txt , 15.Nm OBJ_obj2txt ,
16.Nm OBJ_cmp ,
17.Nm OBJ_dup ,
18.Nm OBJ_create , 18.Nm OBJ_create ,
19.Nm OBJ_cleanup 19.Nm OBJ_cleanup
20.Nd ASN1 object utility functions 20.Nd ASN.1 object utility functions
21.Sh SYNOPSIS 21.Sh SYNOPSIS
22.In openssl/objects.h 22.In openssl/objects.h
23.Ft ASN1_OBJECT * 23.Ft ASN1_OBJECT *
@@ -78,9 +78,9 @@
78.Ft void 78.Ft void
79.Fn OBJ_cleanup void 79.Fn OBJ_cleanup void
80.Sh DESCRIPTION 80.Sh DESCRIPTION
81The ASN1 object utility functions process 81The ASN.1 object utility functions process
82.Vt ASN1_OBJECT 82.Vt ASN1_OBJECT
83structures which are a representation of the ASN1 OBJECT IDENTIFIER 83structures which are a representation of the ASN.1 OBJECT IDENTIFIER
84(OID) type. 84(OID) type.
85.Pp 85.Pp
86.Fn OBJ_nid2obj , 86.Fn OBJ_nid2obj ,
@@ -196,8 +196,8 @@ is only a single constant structure for each table object.
196Objects which are not in the table have the NID value 196Objects which are not in the table have the NID value
197.Dv NID_undef . 197.Dv NID_undef .
198.Pp 198.Pp
199Objects do not need to be in the internal tables to be processed, the 199Objects do not need to be in the internal tables to be processed:
200functions 200the functions
201.Fn OBJ_txt2obj 201.Fn OBJ_txt2obj
202and 202and
203.Fn OBJ_obj2txt 203.Fn OBJ_obj2txt
@@ -213,7 +213,7 @@ if an error occurred.
213.Fn OBJ_nid2ln 213.Fn OBJ_nid2ln
214and 214and
215.Fn OBJ_nid2sn 215.Fn OBJ_nid2sn
216returns a valid string or 216return a valid string or
217.Dv NULL 217.Dv NULL
218on error. 218on error.
219.Pp 219.Pp
@@ -228,20 +228,20 @@ on error.
228.Sh EXAMPLES 228.Sh EXAMPLES
229Create an object for 229Create an object for
230.Sy commonName : 230.Sy commonName :
231.Bd -literal 231.Bd -literal -offset indent
232ASN1_OBJECT *o; 232ASN1_OBJECT *o;
233o = OBJ_nid2obj(NID_commonName); 233o = OBJ_nid2obj(NID_commonName);
234.Ed 234.Ed
235.Pp 235.Pp
236Check if an object is 236Check if an object is
237.Sy commonName 237.Sy commonName :
238.Bd -literal 238.Bd -literal -offset indent
239if (OBJ_obj2nid(obj) == NID_commonName) 239if (OBJ_obj2nid(obj) == NID_commonName)
240 /* Do something */ 240 /* Do something */
241.Ed 241.Ed
242.Pp 242.Pp
243Create a new NID and initialize an object from it: 243Create a new NID and initialize an object from it:
244.Bd -literal 244.Bd -literal -offset indent
245int new_nid; 245int new_nid;
246ASN1_OBJECT *obj; 246ASN1_OBJECT *obj;
247new_nid = OBJ_create("1.2.3.4", "NewOID", "New Object Identifier"); 247new_nid = OBJ_create("1.2.3.4", "NewOID", "New Object Identifier");
@@ -249,7 +249,7 @@ obj = OBJ_nid2obj(new_nid);
249.Ed 249.Ed
250.Pp 250.Pp
251Create a new object directly: 251Create a new object directly:
252.Bd -literal 252.Bd -literal -offset indent
253obj = OBJ_txt2obj("1.2.3.4", 1); 253obj = OBJ_txt2obj("1.2.3.4", 1);
254.Ed 254.Ed
255.Sh SEE ALSO 255.Sh SEE ALSO
diff --git a/src/lib/libcrypto/man/OPENSSL_config.3 b/src/lib/libcrypto/man/OPENSSL_config.3
index e2e277d129..42cc6159d9 100644
--- a/src/lib/libcrypto/man/OPENSSL_config.3
+++ b/src/lib/libcrypto/man/OPENSSL_config.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: OPENSSL_config.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: OPENSSL_config.3,v 1.3 2016/11/22 21:38:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 22 2016 $
4.Dt OPENSSL_CONFIG 3 4.Dt OPENSSL_CONFIG 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -65,12 +65,12 @@ The environment variable
65.Ev OPENSSL_CONF 65.Ev OPENSSL_CONF
66can be set to specify the location of the configuration file. 66can be set to specify the location of the configuration file.
67.Pp 67.Pp
68Currently ASN1 OBJECT and ENGINE configuration can be performed. 68Currently ASN.1 OBJECT and ENGINE configuration can be performed.
69.Pp 69.Pp
70There are several reasons why calling the OpenSSL configuration routines 70There are several reasons why calling the OpenSSL configuration routines
71is advisable. 71is advisable.
72For example new ENGINE functionality was added to OpenSSL 0.9.7. 72For example new ENGINE functionality was added to OpenSSL 0.9.7.
73In OpenSSL 0.9.7 control functions can be supported by ENGINEs, this can be 73In OpenSSL 0.9.7 control functions can be supported by ENGINEs which can be
74used (among other things) to load dynamic ENGINEs from shared libraries 74used (among other things) to load dynamic ENGINEs from shared libraries
75(DSOs). 75(DSOs).
76However very few applications currently support the control interface 76However very few applications currently support the control interface
@@ -113,5 +113,5 @@ It is however
113better than nothing. 113better than nothing.
114Applications which need finer control over their configuration 114Applications which need finer control over their configuration
115functionality should use the configuration functions such as 115functionality should use the configuration functions such as
116.Xr CONF_load_modules 3 116.Xr CONF_modules_load 3
117directly. 117directly.
diff --git a/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 b/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3
index f56d5e8c9d..3f64c2987a 100644
--- a/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3
+++ b/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: OPENSSL_load_builtin_modules.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: OPENSSL_load_builtin_modules.3,v 1.3 2016/11/22 21:38:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 22 2016 $
4.Dt OPENSSL_LOAD_BUILTIN_MODULES 3 4.Dt OPENSSL_LOAD_BUILTIN_MODULES 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -24,7 +24,7 @@ list.
24They can then be used by the OpenSSL configuration code. 24They can then be used by the OpenSSL configuration code.
25.Pp 25.Pp
26.Fn ASN1_add_oid_module 26.Fn ASN1_add_oid_module
27adds just the ASN1 OBJECT module. 27adds just the ASN.1 OBJECT module.
28.Pp 28.Pp
29.Fn ENGINE_add_conf_module 29.Fn ENGINE_add_conf_module
30adds just the ENGINE configuration module. 30adds just the ENGINE configuration module.
diff --git a/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 b/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3
index 26910d45b0..7a31b9d1e8 100644
--- a/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3
+++ b/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: OpenSSL_add_all_algorithms.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: OpenSSL_add_all_algorithms.3,v 1.3 2016/11/22 21:38:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 22 2016 $
4.Dt OPENSSL_ADD_ALL_ALGORITHMS 3 4.Dt OPENSSL_ADD_ALL_ALGORITHMS 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -21,7 +21,7 @@
21.Fn EVP_cleanup void 21.Fn EVP_cleanup void
22.Sh DESCRIPTION 22.Sh DESCRIPTION
23OpenSSL keeps an internal table of digest algorithms and ciphers. 23OpenSSL keeps an internal table of digest algorithms and ciphers.
24It uses this table to lookup ciphers via functions such as 24It uses this table to look up ciphers via functions such as
25.Xr EVP_get_cipherbyname 3 . 25.Xr EVP_get_cipherbyname 3 .
26.Pp 26.Pp
27.Fn OpenSSL_add_all_algorithms 27.Fn OpenSSL_add_all_algorithms
@@ -47,7 +47,7 @@ An application does not need to add algorithms to use them explicitly,
47for example by 47for example by
48.Xr EVP_sha1 3 . 48.Xr EVP_sha1 3 .
49It just needs to add them if it (or any of the functions it calls) needs 49It just needs to add them if it (or any of the functions it calls) needs
50to lookup algorithms. 50to look up algorithms.
51.Pp 51.Pp
52The cipher and digest lookup functions are used in many parts of the 52The cipher and digest lookup functions are used in many parts of the
53library. 53library.