[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

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

krb5_mk_1cred — Encode a KRB_CRED message for krb5_rd_cred

 » Table of Contents

 » Glossary

 » Index

C Prototype

krb5_error_code krb5_mk_1cred (
krb5_context context,
krb5_auth_context auth_context,
krb5_creds *pcreds,
krb5_data **ppdata,
krb5_replay_data *outdata );

Arguments

context (input/output) 

The context structure.

auth_context (input) 

The Kerberos authentication context.

pcreds (input) 

A pointer to 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 a Kerberos credential, and returns a KRB_CRED message in outdata that is suitable for krb5_rd_cred. This is a convenience function that calls krb5_mk_ncred with only a single set of credentials.

Return Values

This routine returns the following KRB5 status codes:

0Successful completion.

ENOMEM

Insufficient memory.

KRB5_RC_REQUIRED

Message replay detection requires rcache parameter.