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

krb5_mk_ncred — Encode a KRB_CRED message for krb5_rd_cred

  Table of Contents

  Glossary

  Index

C Prototype

krb5_error_code krb5_mk_ncred (
krb5_context context,
krb5_auth_context auth_context,
krb5_creds **ppcreds,
krb5_data **ppdata,
krb5_replay_data *outdata );

Arguments

context (input/output) 

The context structure.

auth_context (input) 

The Kerberos authentication context.

ppcreds (input) 

A pointer to an array of Kerberos credentials.

ppdata (input) 

A pointer to a krb5_data structure (not used).

outdata (output) 

A pointer to the KRB_CRED message.

Description

This routine takes an array of Kerberos credentials, and returns a KRB_CRED message in outdata that is suitable for krb5_rd_cred.

Return Values

This routine returns the following KRB5 status codes:

0Successful completion.

ENOMEM

Insufficient memory.

KRB5_RC_REQUIRED

Message replay detection requires rcache parameter.