document krb5_enctype_to_string and krb5_string_to_enctype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12176 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -35,9 +35,11 @@
|
|||||||
.Dt NAME 3
|
.Dt NAME 3
|
||||||
.Os HEIMDAL
|
.Os HEIMDAL
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm krb5_crypto_init ,
|
.NM krb5_enctype_to_string ,
|
||||||
.Nm krb5_crypto_destroy
|
.NM krb5_string_to_enctype ,
|
||||||
.Nd initialize encryption context
|
.Nm krb5_crypto_destroy ,
|
||||||
|
.Nm krb5_crypto_init
|
||||||
|
.Nd encryption support in krb5
|
||||||
.Sh LIBRARY
|
.Sh LIBRARY
|
||||||
Kerberos 5 Library (libkrb5, -lkrb5)
|
Kerberos 5 Library (libkrb5, -lkrb5)
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
@@ -46,23 +48,33 @@ Kerberos 5 Library (libkrb5, -lkrb5)
|
|||||||
.Fn krb5_crypto_init "krb5_context context" "krb5_keyblock *key" "krb5_enctype enctype" "krb5_crypto *crypto"
|
.Fn krb5_crypto_init "krb5_context context" "krb5_keyblock *key" "krb5_enctype enctype" "krb5_crypto *crypto"
|
||||||
.Ft krb5_error_code
|
.Ft krb5_error_code
|
||||||
.Fn krb5_crypto_destroy "krb5_context context" "krb5_crypto crypto"
|
.Fn krb5_crypto_destroy "krb5_context context" "krb5_crypto crypto"
|
||||||
|
.Ft krb5_error_code
|
||||||
|
.Fn krb5_string_to_enctype "krb5_context context" "const char *string" "krb5_enctype *etype"
|
||||||
|
.Ft krb5_error_code
|
||||||
|
.Fn krb5_enctype_to_string "krb5_context context" "krb5_enctype etype" "char **string"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
These functions are used to initialize an encryption context that can
|
Heimdal exports parts of the Kerberos crypto interface for applications.
|
||||||
be used to encrypt or checksum data.
|
|
||||||
.Pp
|
.Pp
|
||||||
The
|
Each kerberos encrytion/checksum function takes a crypto context.
|
||||||
.Fn krb5_crypt_init
|
.Pp
|
||||||
initializes the encrytion context
|
To setup and destroy crypto contextes there are two functions
|
||||||
.Fa crypto .
|
.Fn krb5_crypto_init
|
||||||
The
|
and
|
||||||
.Fa key
|
.Fn krb5_crypto_destroy .
|
||||||
parameter is the key to use for encryption, and checksums. The
|
The encryption type to use is taken from the key, but can be overridden
|
||||||
encryption type to use is taken from the key, but can be overridden
|
|
||||||
with the
|
with the
|
||||||
.Fa enctype parameter .
|
.Fa enctype parameter .
|
||||||
|
This can be useful for encryptions types which is compatiable (DES for
|
||||||
|
example).
|
||||||
.Pp
|
.Pp
|
||||||
.Fn krb5_crypto_destroy
|
.Fn krb5_enctype_to_string
|
||||||
frees a previously allocated encrypion context.
|
converts a encryption type number to a string that can be printable
|
||||||
|
and stored. The strings returned should be freed with
|
||||||
|
.Xr free 3 .
|
||||||
|
.Pp
|
||||||
|
.Fn krb5_string_to_enctype
|
||||||
|
converts a encryption type strings to a encryption type number that
|
||||||
|
can use used for other Kerberos crypto functions.
|
||||||
.\" .Sh EXAMPLE
|
.\" .Sh EXAMPLE
|
||||||
.\" .Sh BUGS
|
.\" .Sh BUGS
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
Reference in New Issue
Block a user