+static int mag_get_mac_size(struct mag_req_cfg *cfg)
+{
+ if (!cfg->mag_skey) {
+ ap_log_perror(APLOG_MARK, APLOG_INFO, 0, cfg->cfg->pool,
+ "Session key not available, aborting!");
+ return 0;
+ }
+
+ return get_mac_size(cfg->mag_skey);
+}
+
+bool mag_basic_check(struct mag_req_cfg *cfg, struct mag_conn *mc,