Function sapnwrfc::binding::RfcSNCNameToKey [] [src]

pub unsafe extern "C" fn RfcSNCNameToKey(
    sncLib: *const SAP_UC,
    sncName: *const SAP_UC,
    sncKey: *mut SAP_RAW,
    keyLength: *mut c_uint,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC

Converts SNC name to SNC key.

\in *sncLib Optional: file name of the GSS library to be used for the conversion. If not specified, the "global" GSS library (environment variable SNC_LIB) will be used. \in *sncName Null-terminated SNC name to be converted. \out *sncKey Pre-allocated buffer, which will receive the corresponding SNC key. \inout *keyLength Needs to be filled with the buffer length of sncKey. The return value will be byte length of the SNC key (if buffer was large enough). Unfortunately in case of RFC_BUFFER_TOO_SMALL the required size is not returned by the GSS library. The maximum length of an SNC key is 1024. \out *errorInfo More error details in case something goes wrong. \return RFC_RC