shishi_as_check_crealm3
Api function
Usage
#include <shishi.h>
int shishi_as_check_crealm(Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep);
Arguments
Shishi * handle
|
Shishi handle as allocated by |
|---|---|
Shishi_asn1 asreq
|
Request of type AS-REQ. |
Shishi_asn1 asrep
|
Reply structure of type AS-REP. |
Overview
Verifies that the fields asreq.req-body.realm and asrep.crealm contain identical realm names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see shishi_kdc_process() for more details.
Return value
Returns SHISHI_OK if successful, SHISHI_REALM_MISMATCH whenever the realm names differ, and an error code otherwise.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.