HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_c_random_make_octets — Create random data

 » Table of Contents

 » Glossary

 » Index

C Prototype

krb5_error_code krb5_c_random_make_octets (
krb5_context context,
krb5_data *data );

Arguments

context (input/output) 

The context structure.

data (output) 

The random data.

Description

This routine creates random data using entropy from the Operating System.

Return Values

This routine returns the following KRB5 status codes:

0Successful completion.

KRB5_CRYPTO_INTERNAL

Cryptosystem internal error.