#include <set_msg.h> typedef struct BatchAdminRes_ { asn1set__MessageWrapper messageWrapper; asn1set__BatchAdminResData batchAdminResData; cert_identity gatewaySignatureCID; cert_identity gatewayKeyExchangeCID; } *BatchAdminRes; BatchAdminRes safe_cast_BatchAdminRes(msg) set_msg msg; /* IN */
BatchAdminRes
contains the data from a SET BatchAdminRes message in native C form. See the asn_types.h
and asn1set.h header files for the declarations of the various types. See the SET specification for a
description of individual fields. BatchAdminRes
message objects of type set_msg
can be cast to type BatchAdminRes
using the
safe_cast_BatchAdminRes()
routine.
make_set_msg()
results in the protocol layer filling in the following fields: * messageWrapper.messageHeader.version * messageWrapper.messageHeader.date * messageWrapper.messageHeader.rrPID * messageWrapper.messageHeader.swIdent * messageWrapper.message._choice * batchAdminResData.batchAdminTags
It is unwise for applications to change the contents of the fields filled in by the protocol layer.
After calling make_set_msg()
, gateway software must fill in the following required fields:
* gatewaySignatureCID
Non-required fields may be left empty at the discretion of the gateway application.
STATE_BATCHADMINREQ_RRPID get STATE_RRTAGS get
STATE_BATCHADMINREQ_RRPID get
safe_cast_BatchAdminRes()
returns a pointer to a BatchAdminRes
data structure. Objects of
type set_msg
that were not created with message type asn1set__Message__batchAdminRes
will cause
safe_cast_BatchAdminRes()
to fail. On failure, safe_cast_BatchAdminRes()
returns a 0 pointer. There is a difference between non-required and optional. Non-required fields may be omitted according to the SET protocol. Optional fields may be omitted according to ASN.1 encoding rules. In some messages, a field may be optional according to ASN.1, but still required by the SET protocol. In these cases, it is incumbent on the application to fill in these fields.
Optional fields that are filled in require an application of the SET_PRESENT()
macro. See
documentation on ASN.1/DER runtime types for additional information.
batchAdminRes = safe_cast_BatchAdminRes(request); assert(batchAdminRes != 0); /* ... */
Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.