diff options
author | David Krause <david@cvs.openbsd.org> | 2005-08-02 04:00:09 +0000 |
---|---|---|
committer | David Krause <david@cvs.openbsd.org> | 2005-08-02 04:00:09 +0000 |
commit | 4409d3a4b8a8036c4b5890327e591e2096e17b3f (patch) | |
tree | cb198b558e7898e26df4fb4be22f023cb767d9d0 | |
parent | d5dd255f3a33a34c1c58d6e6fac9a7983b4487e4 (diff) |
.Dd cleanup
-rw-r--r-- | kerberosV/src/kdc/kstash.8 | 19 | ||||
-rw-r--r-- | kerberosV/src/kdc/string2key.8 | 64 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5.conf.5 | 2 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5_create_checksum.3 | 59 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5_crypto_init.3 | 41 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5_encrypt.3 | 61 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5_get_all_client_addrs.3 | 54 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5_set_password.3 | 2 | ||||
-rw-r--r-- | kerberosV/src/lib/krb5/krb5_timeofday.3 | 44 |
9 files changed, 274 insertions, 72 deletions
diff --git a/kerberosV/src/kdc/kstash.8 b/kerberosV/src/kdc/kstash.8 index 6d66e4ec1ea..6c21d086616 100644 --- a/kerberosV/src/kdc/kstash.8 +++ b/kerberosV/src/kdc/kstash.8 @@ -1,20 +1,21 @@ -.\" $KTH: kstash.8,v 1.3 2000/09/01 16:37:52 joda Exp $ +.\" $KTH: kstash.8,v 1.7 2002/08/20 16:37:14 joda Exp $ .\" -.Dd September 1, 2000 +.Dd September 1, 2000 .Dt KSTASH 8 .Os HEIMDAL .Sh NAME .Nm kstash -.Nd -store the KDC master password in a file +.Nd "store the KDC master password in a file" .Sh SYNOPSIS .Nm .Oo Fl e Ar string \*(Ba Xo -.Fl -enctype= Ns Ar string Oc +.Fl -enctype= Ns Ar string .Xc +.Oc .Oo Fl k Ar file \*(Ba Xo -.Fl -key-file= Ns Ar file Oc +.Fl -key-file= Ns Ar file .Xc +.Oc .Op Fl -convert-file .Op Fl -master-key-fd= Ns Ar fd .Op Fl h | Fl -help @@ -27,12 +28,12 @@ used by the KDC. Supported options: .Bl -tag -width Ds .It Xo -.Fl e Ar string Ns , +.Fl e Ar string , .Fl -enctype= Ns Ar string .Xc the encryption type to use, defaults to DES3-CBC-SHA1 .It Xo -.Fl k Ar file Ns , +.Fl k Ar file , .Fl -key-file= Ns Ar file .Xc the name of the master key file @@ -40,7 +41,7 @@ the name of the master key file .Fl -convert-file .Xc don't ask for a new master key, just read an old master key file, and -writes it back in the new keyfile format +write it back in the new keyfile format .It Xo .Fl -master-key-fd= Ns Ar fd .Xc diff --git a/kerberosV/src/kdc/string2key.8 b/kerberosV/src/kdc/string2key.8 index 144ab9bd762..461bcf42612 100644 --- a/kerberosV/src/kdc/string2key.8 +++ b/kerberosV/src/kdc/string2key.8 @@ -1,29 +1,63 @@ -.\" $KTH: string2key.8,v 1.2 2000/03/04 14:02:55 assar Exp $ +.\" Copyright (c) 2000 - 2002 Kungliga Tekniska Högskolan +.\" (Royal Institute of Technology, Stockholm, Sweden). +.\" All rights reserved. .\" -.Dd March 4, 2000 +.\" 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. Neither the name of the Institute nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 INSTITUTE OR 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. +.\" +.\" $KTH: string2key.8,v 1.6 2003/02/16 21:10:21 lha Exp $ +.\" +.Dd March 4, 2000 .Dt STRING2KEY 8 .Os HEIMDAL .Sh NAME .Nm string2key -.Nd -map a password into a key +.Nd map a password into a key .Sh SYNOPSIS .Nm .Op Fl 5 | Fl -version5 .Op Fl 4 | Fl -version4 .Op Fl a | Fl -afs .Oo Fl c Ar cell \*(Ba Xo -.Fl -cell= Ns Ar cell Oc +.Fl -cell= Ns Ar cell .Xc +.Oc .Oo Fl w Ar password \*(Ba Xo -.Fl -password= Ns Ar password Oc +.Fl -password= Ns Ar password .Xc +.Oc .Oo Fl p Ar principal \*(Ba Xo -.Fl -principal= Ns Ar principal Oc +.Fl -principal= Ns Ar principal .Xc +.Oc .Oo Fl k Ar string \*(Ba Xo -.Fl -keytype= Ns Ar string Oc +.Fl -keytype= Ns Ar string .Xc +.Oc .Ar password .Sh DESCRIPTION .Nm @@ -32,37 +66,37 @@ This is useful when you want to handle the raw key instead of the password. Supported options: .Bl -tag -width Ds .It Xo -.Fl 5 Ns , +.Fl 5 , .Fl -version5 .Xc Output Kerberos v5 string-to-key .It Xo -.Fl 4 Ns , +.Fl 4 , .Fl -version4 .Xc Output Kerberos v4 string-to-key .It Xo -.Fl a Ns , +.Fl a , .Fl -afs .Xc Output AFS string-to-key .It Xo -.Fl c Ar cell Ns , +.Fl c Ar cell , .Fl -cell= Ns Ar cell .Xc AFS cell to use .It Xo -.Fl w Ar password Ns , +.Fl w Ar password , .Fl -password= Ns Ar password .Xc Password to use .It Xo -.Fl p Ar principal Ns , +.Fl p Ar principal , .Fl -principal= Ns Ar principal .Xc Kerberos v5 principal to use .It Xo -.Fl k Ar string Ns , +.Fl k Ar string , .Fl -keytype= Ns Ar string .Xc Keytype diff --git a/kerberosV/src/lib/krb5/krb5.conf.5 b/kerberosV/src/lib/krb5/krb5.conf.5 index 0d06aa64c19..99f6f17dcbd 100644 --- a/kerberosV/src/lib/krb5/krb5.conf.5 +++ b/kerberosV/src/lib/krb5/krb5.conf.5 @@ -31,7 +31,7 @@ .\" .\" $KTH: krb5.conf.5,v 1.35.2.2 2004/03/09 19:52:07 lha Exp $ .\" -.Dd March 9, 2004 +.Dd March 9, 2004 .Dt KRB5.CONF 5 .Os HEIMDAL .Sh NAME diff --git a/kerberosV/src/lib/krb5/krb5_create_checksum.3 b/kerberosV/src/lib/krb5/krb5_create_checksum.3 index df80fdd2706..e9e5170aab5 100644 --- a/kerberosV/src/lib/krb5/krb5_create_checksum.3 +++ b/kerberosV/src/lib/krb5/krb5_create_checksum.3 @@ -1,17 +1,50 @@ .\" Copyright (c) 1999 Kungliga Tekniska Högskolan -.\" $KTH: krb5_create_checksum.3,v 1.2 2001/01/26 22:43:21 assar Exp $ -.Dd April 7, 1999 +.\" (Royal Institute of Technology, Stockholm, Sweden). +.\" 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. Neither the name of the Institute nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 INSTITUTE OR 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. +.\" +.\" $KTH: krb5_create_checksum.3,v 1.6 2003/04/16 13:58:14 lha Exp $ +.\" +.Dd April 7, 1999 .Dt NAME 3 .Os HEIMDAL .Sh NAME -.Nm krb5_checksum_is_collision_proof , -.Nm krb5_checksum_is_keyed , -.Nm krb5_checksumsize , -.Nm krb5_create_checksum , +.Nm krb5_checksum_is_collision_proof , +.Nm krb5_checksum_is_keyed , +.Nm krb5_checksumsize , +.Nm krb5_create_checksum , .Nm krb5_verify_checksum .Nd creates and verifies checksums +.Sh LIBRARY +Kerberos 5 Library (libkrb5, -lkrb5) .Sh SYNOPSIS -.Fd #include <krb5.h> +.In krb5.h .Ft krb5_error_code .Fn krb5_create_checksum "krb5_context context" "krb5_crypto crypto" "unsigned usage_or_type" "void *data" "size_t len" "Checksum *result" .Ft krb5_error_code @@ -22,15 +55,15 @@ .Fn krb5_checksum_is_keyed "krb5_context context" "krb5_cksumtype type" .Sh DESCRIPTION These functions are used to create and verify checksums. -.Fn krb5_create_checksum +.Fn krb5_create_checksum creates a checksum of the specified data, and puts it in .Fa result . If .Fa crypto -is +is .Dv NULL , -.Fa usage_or_type -specifies the checksum type to use; it must not be keyed. Otherwise +.Fa usage_or_type +specifies the checksum type to use; it must not be keyed. Otherwise .Fa crypto is an encryption context created by .Fn krb5_crypto_init , @@ -41,7 +74,7 @@ specifies a key-usage. .Fn krb5_verify_checksum verifies the .Fa checksum , -against the provided data. +against the provided data. .Pp .Fn krb5_checksum_is_collision_proof returns true is the specified checksum is collision proof (that it's @@ -52,7 +85,7 @@ collision proof checksums are MD5, and SHA1, while CRC32 is not. .Fn krb5_checksum_is_keyed returns true if the specified checksum type is keyed (that the hash value is a function of both the data, and a separate key). Examples of -keyed hash algorithms are HMAC-SHA1-DES3, and RSA-MD5-DES. The +keyed hash algorithms are HMAC-SHA1-DES3, and RSA-MD5-DES. The .Dq plain hash functions MD5, and SHA1 are not keyed. .\" .Sh EXAMPLE diff --git a/kerberosV/src/lib/krb5/krb5_crypto_init.3 b/kerberosV/src/lib/krb5/krb5_crypto_init.3 index f4672c28fb0..397120ad7ff 100644 --- a/kerberosV/src/lib/krb5/krb5_crypto_init.3 +++ b/kerberosV/src/lib/krb5/krb5_crypto_init.3 @@ -1,14 +1,47 @@ .\" Copyright (c) 1999 Kungliga Tekniska Högskolan -.\" $KTH: krb5_crypto_init.3,v 1.2 2001/01/26 22:43:22 assar Exp $ -.Dd April 7, 1999 +.\" (Royal Institute of Technology, Stockholm, Sweden). +.\" 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. Neither the name of the Institute nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 INSTITUTE OR 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. +.\" +.\" $KTH: krb5_crypto_init.3,v 1.6 2003/04/16 13:58:15 lha Exp $ +.\" +.Dd April 7, 1999 .Dt NAME 3 .Os HEIMDAL .Sh NAME -.Nm krb5_crypto_init , +.Nm krb5_crypto_init , .Nm krb5_crypto_destroy .Nd initialize encryption context +.Sh LIBRARY +Kerberos 5 Library (libkrb5, -lkrb5) .Sh SYNOPSIS -.Fd #include <krb5.h> +.In krb5.h .Ft krb5_error_code .Fn krb5_crypto_init "krb5_context context" "krb5_keyblock *key" "krb5_enctype enctype" "krb5_crypto *crypto" .Ft krb5_error_code diff --git a/kerberosV/src/lib/krb5/krb5_encrypt.3 b/kerberosV/src/lib/krb5/krb5_encrypt.3 index 41a2febb76e..b64ed57c045 100644 --- a/kerberosV/src/lib/krb5/krb5_encrypt.3 +++ b/kerberosV/src/lib/krb5/krb5_encrypt.3 @@ -1,16 +1,49 @@ .\" Copyright (c) 1999 Kungliga Tekniska Högskolan -.\" $KTH: krb5_encrypt.3,v 1.2 2001/01/26 22:43:22 assar Exp $ -.Dd April 7, 1999 +.\" (Royal Institute of Technology, Stockholm, Sweden). +.\" 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. Neither the name of the Institute nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 INSTITUTE OR 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. +.\" +.\" $KTH: krb5_encrypt.3,v 1.7 2003/04/16 13:58:15 lha Exp $ +.\" +.Dd April 7, 1999 .Dt KRB5_ENCRYPT 3 .Os HEIMDAL .Sh NAME -.Nm krb5_decrypt , -.Nm krb5_decrypt_EncryptedData , -.Nm krb5_encrypt , +.Nm krb5_decrypt , +.Nm krb5_decrypt_EncryptedData , +.Nm krb5_encrypt , .Nm krb5_encrypt_EncryptedData .Nd encrypt and decrypt data +.Sh LIBRARY +Kerberos 5 Library (libkrb5, -lkrb5) .Sh SYNOPSIS -.Fd #include <krb5.h> +.In krb5.h .Ft krb5_error_code .Fn krb5_encrypt "krb5_context context" "krb5_crypto crypto" "unsigned usage" "void *data" "size_t len" "krb5_data *result" .Ft krb5_error_code @@ -23,23 +56,23 @@ These functions are used to encrypt and decrypt data. .Pp .Fn krb5_encrypt -puts the encrypted version of +puts the encrypted version of .Fa data (of size .Fa len ) in .Fa result . -If the encryption type supports using derived keys, +If the encryption type supports using derived keys, .Fa usage should be the appropriate key-usage. .Fn krb5_encrypt_EncryptedData does the same as .Fn krb5_encrypt , but it puts the encrypted data in a -.Fa EncryptedData -structure instead. If -.Fa kvno -is not zero, it will be put in the +.Fa EncryptedData +structure instead. If +.Fa kvno +is not zero, it will be put in the .Fa kvno field in the .Fa EncryptedData . .Pp @@ -50,5 +83,5 @@ works similarly. .\" .Sh EXAMPLE .\" .Sh BUGS .Sh SEE ALSO -.Xr krb5_crypto_init 3 , -.Xr krb5_create_checksum 3 +.Xr krb5_create_checksum 3 , +.Xr krb5_crypto_init 3 diff --git a/kerberosV/src/lib/krb5/krb5_get_all_client_addrs.3 b/kerberosV/src/lib/krb5/krb5_get_all_client_addrs.3 index 7ecaa77235f..4560c41abb6 100644 --- a/kerberosV/src/lib/krb5/krb5_get_all_client_addrs.3 +++ b/kerberosV/src/lib/krb5/krb5_get_all_client_addrs.3 @@ -1,18 +1,52 @@ -.\" $KTH: krb5_get_all_client_addrs.3,v 1.1 2001/07/02 22:31:36 joda Exp $ -.Dd July 1, 2001 +.\" Copyright (c) 2001 Kungliga Tekniska Högskolan +.\" (Royal Institute of Technology, Stockholm, Sweden). +.\" 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. Neither the name of the Institute nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 INSTITUTE OR 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. +.\" +.\" $KTH: krb5_get_all_client_addrs.3,v 1.6 2003/04/16 13:58:16 lha Exp $ +.\" +.Dd July 1, 2001 .Dt KRB5_GET_ADDRS 3 .Sh NAME .Nm krb5_get_all_client_addrs , .Nm krb5_get_all_server_addrs .Nd return local addresses +.Sh LIBRARY +Kerberos 5 Library (libkrb5, -lkrb5) .Sh SYNOPSIS -.Fd #include <krb5.h> +.In krb5.h .Ft "krb5_error_code" -.Fn krb5_get_all_client_addrs "krb5_context context" "krb5_addresses *addrs" +.Fn krb5_get_all_client_addrs "krb5_context context" "krb5_addresses *addrs" .Ft "krb5_error_code" -.Fn krb5_get_all_server_addrs "krb5_context context" "krb5_addresses *addrs" +.Fn krb5_get_all_server_addrs "krb5_context context" "krb5_addresses *addrs" .Sh DESCRIPTION -These functions return in +These functions return in .Fa addrs a list of addresses associated with the local host. @@ -24,16 +58,16 @@ to create sockets to listen to. The client version will also scan local interfaces (can be turned off by setting .Li libdefaults/scan_interfaces -to false in -.Pa krb5.conf ) , +to false in +.Pa krb5.conf ) , but will not include loop-back addresses, unless there are no other addresses found. It will remove all addresses included in .Li libdefaults/ignore_addresses but will unconditionally include addresses in .Li libdefaults/extra_addresses . .Pp -The returned addresses should be freed by calling +The returned addresses should be freed by calling .Fn krb5_free_addresses . .\".Sh EXAMPLE .Sh SEE ALSO -.Xr krb5_free_addresses +.Xr krb5_free_addresses 3 diff --git a/kerberosV/src/lib/krb5/krb5_set_password.3 b/kerberosV/src/lib/krb5/krb5_set_password.3 index 71079f71431..9f7cc708f2f 100644 --- a/kerberosV/src/lib/krb5/krb5_set_password.3 +++ b/kerberosV/src/lib/krb5/krb5_set_password.3 @@ -31,7 +31,7 @@ .\" .\" $KTH: krb5_set_password.3,v 1.3.2.1 2004/06/21 10:51:20 lha Exp $ .\" -.Dd June 2, 2004 +.Dd June 2, 2004 .Dt KRB5_SET_PASSWORD 3 .Os HEIMDAL .Sh NAME diff --git a/kerberosV/src/lib/krb5/krb5_timeofday.3 b/kerberosV/src/lib/krb5/krb5_timeofday.3 index 8b7777c2f8f..686270291ba 100644 --- a/kerberosV/src/lib/krb5/krb5_timeofday.3 +++ b/kerberosV/src/lib/krb5/krb5_timeofday.3 @@ -1,16 +1,50 @@ -.\" $KTH: krb5_timeofday.3,v 1.1 2001/07/02 22:32:03 joda Exp $ -.Dd July 1, 2001 +.\" Copyright (c) 2001 Kungliga Tekniska Högskolan +.\" (Royal Institute of Technology, Stockholm, Sweden). +.\" 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. Neither the name of the Institute nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS 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 INSTITUTE OR 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. +.\" +.\" $KTH: krb5_timeofday.3,v 1.5 2003/04/16 13:58:18 lha Exp $ +.\" +.Dd July 1, 2001 .Dt KRB5_TIMEOFDAY 3 .Sh NAME .Nm krb5_timeofday , .Nm krb5_us_timeofday .Nd whatever these functions do +.Sh LIBRARY +Kerberos 5 Library (libkrb5, -lkrb5) .Sh SYNOPSIS -.Fd #include <krb5.h> +.In krb5.h .Ft "krb5_error_code" -.Fn krb5_timeofday "krb5_context context" "krb5_timestamp *timeret" +.Fn krb5_timeofday "krb5_context context" "krb5_timestamp *timeret" .Ft "krb5_error_code" -.Fn krb5_us_timeofday "krb5_context context" "int32_t *sec" "int32_t *usec" +.Fn krb5_us_timeofday "krb5_context context" "int32_t *sec" "int32_t *usec" .Sh DESCRIPTION .Fn krb5_timeofday returns the current time, but adjusted with the time difference |