|  |  |  | libmbim-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
MbimMessage * mbim_message_auth_aka_query_new (const guint8 *rand,const guint8 *autn,GError **error); gboolean mbim_message_auth_aka_response_parse (const MbimMessage *message,const guint8 **res,guint32 *res_len,const guint8 **integrating_key,const guint8 **ciphering_key,const guint8 **auts,GError **error); MbimMessage * mbim_message_auth_akap_query_new (const guint8 *rand,const guint8 *autn,const gchar *network_name,GError **error); gboolean mbim_message_auth_akap_response_parse (const MbimMessage *message,const guint8 **res,guint32 *res_len,const guint8 **integrating_key,const guint8 **ciphering_key,const guint8 **auts,GError **error); MbimMessage * mbim_message_auth_sim_query_new (const guint8 *rand1,const guint8 *rand2,const guint8 *rand3,guint32 n,GError **error); gboolean mbim_message_auth_sim_response_parse (const MbimMessage *message,guint32 *sres1,guint64 *kc1,guint32 *sres2,guint64 *kc2,guint32 *sres3,guint64 *kc3,guint32 *n,GError **error);
MbimMessage * mbim_message_auth_aka_query_new (const guint8 *rand,const guint8 *autn,GError **error);
Create a new request for the 'Aka' query command in the 'Auth' service.
| 
 | the 'Rand' field, given as an array of 16 guint8 values. | 
| 
 | the 'Autn' field, given as an array of 16 guint8 values. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_auth_aka_response_parse (const MbimMessage *message,const guint8 **res,guint32 *res_len,const guint8 **integrating_key,const guint8 **ciphering_key,const guint8 **auts,GError **error);
Create a new request for the 'Auts' response command in the 'Auth' service.
| 
 | the MbimMessage. | 
| 
 | return location for an array of 16 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for a guint32, or NULLif the 'ResLen' field is not needed. | 
| 
 | return location for an array of 16 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for an array of 16 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for an array of 14 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
MbimMessage * mbim_message_auth_akap_query_new (const guint8 *rand,const guint8 *autn,const gchar *network_name,GError **error);
Create a new request for the 'Akap' query command in the 'Auth' service.
| 
 | the 'Rand' field, given as an array of 16 guint8 values. | 
| 
 | the 'Autn' field, given as an array of 16 guint8 values. | 
| 
 | the 'NetworkName' field, given as a string. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_auth_akap_response_parse (const MbimMessage *message,const guint8 **res,guint32 *res_len,const guint8 **integrating_key,const guint8 **ciphering_key,const guint8 **auts,GError **error);
Create a new request for the 'Auts' response command in the 'Auth' service.
| 
 | the MbimMessage. | 
| 
 | return location for an array of 16 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for a guint32, or NULLif the 'ResLen' field is not needed. | 
| 
 | return location for an array of 16 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for an array of 16 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for an array of 14 guint8 values. Do not free the returned value, it is owned by message. | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
MbimMessage * mbim_message_auth_sim_query_new (const guint8 *rand1,const guint8 *rand2,const guint8 *rand3,guint32 n,GError **error);
Create a new request for the 'Sim' query command in the 'Auth' service.
| 
 | the 'Rand1' field, given as an array of 16 guint8 values. | 
| 
 | the 'Rand2' field, given as an array of 16 guint8 values. | 
| 
 | the 'Rand3' field, given as an array of 16 guint8 values. | 
| 
 | the 'N' field, given as a guint32. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_auth_sim_response_parse (const MbimMessage *message,guint32 *sres1,guint64 *kc1,guint32 *sres2,guint64 *kc2,guint32 *sres3,guint64 *kc3,guint32 *n,GError **error);
Create a new request for the 'N' response command in the 'Auth' service.
| 
 | the MbimMessage. | 
| 
 | return location for a guint32, or NULLif the 'Sres1' field is not needed. | 
| 
 | return location for a guint64, or NULLif the 'Kc1' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'Sres2' field is not needed. | 
| 
 | return location for a guint64, or NULLif the 'Kc2' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'Sres3' field is not needed. | 
| 
 | return location for a guint64, or NULLif the 'Kc3' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'N' field is not needed. | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. |