GSS_GET_MIC(3GSS) | Generic Security Services API Library Functions | GSS_GET_MIC(3GSS) |
gss_get_mic - calculate a cryptographic message
cc [ flag... ] file... -lgss [ library... ] #include <gssapi/gssapi.h> OM_uint32 gss_get_mic(OM_uint32 *minor_status,
const gss_ctx_id_t context_handle, gss_qop_t qop_req,
const gss_buffer_t message_buffer, gss_buffer_t msg_token);
The gss_get_mic() function generates a cryptographic MIC for the supplied message, and places the MIC in a token for transfer to the peer application. The qop_req parameter allows a choice between several cryptographic algorithms, if supported by the chosen mechanism.
Since some application-level protocols may wish to use tokens emitted by gss_wrap(3GSS) to provide secure framing, the GSS-API allows MICs to be derived from zero-length messages.
The parameter descriptions for gss_get_mic() follow:
minor_status
context_handle
qop_req
message_buffer
msg_token
gss_get_mic() may return the following status codes:
GSS_S_COMPLETE
GSS_S_CONTEXT_EXPIRED
GSS_S_NO_CONTEXT
GSS_S_BAD_QOP
GSS_S_FAILURE
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
MT-Level | Safe |
gss_release_buffer(3GSS), gss_wrap(3GSS), attributes(7)
Solaris Security for Developers Guide
January 14, 2003 | OmniOS |