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

krb5_524_convert_creds — Convert Kerberos V5 credentials to V4

  Table of Contents

  Glossary

  Index

C Prototype

krb5_error_code krb5_524_convert_creds (
krb5_context context,
krb5_creds *v5creds,
CREDENTIALS *v4creds );

Arguments

context (input/output) 

The context structure.

v5creds (input) 

A pointer to the Kerberos V5 credentials to be converted.

v4creds (output) 

A pointer to the Kerberos V4 credential structure to be filled in.

Description

This routine takes a set of Kerberos V5 credentials, and converts them to V4 format.

Return Values

This routine returns the following KRB5 status codes:

0Successful completion.

-1

Bad key.

KRB5_INVALID_PRINCIPAL

Invalid principal name.

KRB5_CONFIG_CANTOPEN

Can’t open/find Kerberos configuration file.

KRB5_REALM_UNKNOWN

Unknown realm.

KRB524_KRB5_DISABLED

Kerberos V4 compatibility is disabled.
ENOMEM

Insufficient memory.