Lines Matching refs:g

843 st_optionneg(g)  in st_optionneg()  argument
844 genarg *g; in st_optionneg()
857 if (g == NULL || g->a_ctx->ctx_smfi == NULL)
859 ctx = g->a_ctx;
860 mi_clr_macros(ctx, g->a_idx + 1);
864 if (g->a_len < MILTER_OPTLEN)
869 (long) ctx->ctx_id, (int) g->a_len,
875 (void) memcpy((void *) &i, (void *) &(g->a_buf[0]), MILTER_LEN_BYTES);
895 (void) memcpy((void *) &i, (void *) &(g->a_buf[MILTER_LEN_BYTES]),
905 (void) memcpy((void *) &i, (void *) &(g->a_buf[MILTER_LEN_BYTES * 2]),
977 if (g->a_ctx->ctx_smfi != NULL &&
978 g->a_ctx->ctx_smfi->xxfi_version > 4 &&
979 (fi_negotiate = g->a_ctx->ctx_smfi->xxfi_negotiate) != NULL)
997 r = fi_negotiate(g->a_ctx,
1173 st_connectinfo(g) in st_connectinfo() argument
1174 genarg *g; in st_connectinfo()
1183 if (g == NULL)
1185 mi_clr_macros(g->a_ctx, g->a_idx + 1);
1186 if (g->a_ctx->ctx_smfi == NULL ||
1187 (fi_connect = g->a_ctx->ctx_smfi->xxfi_connect) == NULL)
1190 s = g->a_buf;
1192 l = g->a_len;
1208 g->a_ctx->ctx_smfi->xxfi_name,
1209 (long) g->a_ctx->ctx_id, (int) i, (int) l);
1227 g->a_ctx->ctx_smfi->xxfi_name,
1228 (long) g->a_ctx->ctx_id);
1245 g->a_ctx->ctx_smfi->xxfi_name,
1246 (long) g->a_ctx->ctx_id);
1264 g->a_ctx->ctx_smfi->xxfi_name,
1265 (long) g->a_ctx->ctx_id);
1275 g->a_ctx->ctx_smfi->xxfi_name,
1276 (long) g->a_ctx->ctx_id, family);
1280 return (*fi_connect)(g->a_ctx, g->a_buf,
1295 st_eoh(g) in st_eoh() argument
1296 genarg *g; in st_eoh()
1300 if (g == NULL)
1302 if (g->a_ctx->ctx_smfi != NULL &&
1303 (fi_eoh = g->a_ctx->ctx_smfi->xxfi_eoh) != NULL)
1304 return (*fi_eoh)(g->a_ctx);
1319 st_data(g) in st_data() argument
1320 genarg *g; in st_data()
1324 if (g == NULL)
1326 if (g->a_ctx->ctx_smfi != NULL &&
1327 g->a_ctx->ctx_smfi->xxfi_version > 3 &&
1328 (fi_data = g->a_ctx->ctx_smfi->xxfi_data) != NULL)
1329 return (*fi_data)(g->a_ctx);
1344 st_helo(g) in st_helo() argument
1345 genarg *g; in st_helo()
1349 if (g == NULL)
1351 mi_clr_macros(g->a_ctx, g->a_idx + 1);
1352 if (g->a_ctx->ctx_smfi != NULL &&
1353 (fi_helo = g->a_ctx->ctx_smfi->xxfi_helo) != NULL)
1356 if (g->a_len == 0 || g->a_buf[g->a_len - 1] != '\0')
1358 return (*fi_helo)(g->a_ctx, g->a_buf);
1374 st_header(g) in st_header() argument
1375 genarg *g; in st_header()
1380 if (g == NULL)
1382 if (g->a_ctx->ctx_smfi == NULL ||
1383 (fi_header = g->a_ctx->ctx_smfi->xxfi_header) == NULL)
1385 if (dec_arg2(g->a_buf, g->a_len, &hf, &hv) == MI_SUCCESS)
1386 return (*fi_header)(g->a_ctx, hf, hv);
1396 if (g == NULL) \
1398 mi_clr_macros(g->a_ctx, g->a_idx + 1); \
1399 if (g->a_ctx->ctx_smfi == NULL || \
1400 (lf = g->a_ctx->ctx_smfi->rf) == NULL) \
1402 if ((argv = dec_argv(g->a_buf, g->a_len)) == NULL) \
1404 r = (*lf)(g->a_ctx, argv); \
1419 st_sender(g) in st_sender() argument
1420 genarg *g; in st_sender()
1436 st_rcpt(g) in st_rcpt() argument
1437 genarg *g; in st_rcpt()
1453 st_unknown(g) in st_unknown() argument
1454 genarg *g; in st_unknown()
1458 if (g == NULL)
1460 if (g->a_ctx->ctx_smfi != NULL &&
1461 g->a_ctx->ctx_smfi->xxfi_version > 2 &&
1462 (fi_unknown = g->a_ctx->ctx_smfi->xxfi_unknown) != NULL)
1463 return (*fi_unknown)(g->a_ctx, (const char *) g->a_buf);
1481 st_macros(g) in st_macros() argument
1482 genarg *g; in st_macros()
1487 if (g == NULL || g->a_len < 1)
1489 if ((argv = dec_argv(g->a_buf + 1, g->a_len - 1)) == NULL)
1491 switch (g->a_buf[0])
1518 if (g->a_ctx->ctx_mac_ptr[i] != NULL)
1519 free(g->a_ctx->ctx_mac_ptr[i]);
1520 if (g->a_ctx->ctx_mac_buf[i] != NULL)
1521 free(g->a_ctx->ctx_mac_buf[i]);
1522 g->a_ctx->ctx_mac_ptr[i] = argv;
1523 g->a_ctx->ctx_mac_buf[i] = g->a_buf;
1539 st_quit(g) in st_quit() argument
1540 genarg *g; in st_quit()
1544 if (g == NULL)
1546 if (g->a_ctx->ctx_smfi != NULL &&
1547 (fi_close = g->a_ctx->ctx_smfi->xxfi_close) != NULL)
1548 (void) (*fi_close)(g->a_ctx);
1549 mi_clr_macros(g->a_ctx, 0);
1564 st_bodychunk(g) in st_bodychunk() argument
1565 genarg *g; in st_bodychunk()
1569 if (g == NULL)
1571 if (g->a_ctx->ctx_smfi != NULL &&
1572 (fi_body = g->a_ctx->ctx_smfi->xxfi_body) != NULL)
1573 return (*fi_body)(g->a_ctx, (unsigned char *)g->a_buf,
1574 g->a_len);
1592 st_bodyend(g) in st_bodyend() argument
1593 genarg *g; in st_bodyend()
1599 if (g == NULL)
1602 if (g->a_ctx->ctx_smfi != NULL)
1604 if ((fi_body = g->a_ctx->ctx_smfi->xxfi_body) != NULL &&
1605 g->a_len > 0)
1610 timeout.tv_sec = g->a_ctx->ctx_timeout;
1612 sd = g->a_ctx->ctx_sd;
1613 r = (*fi_body)(g->a_ctx, (unsigned char *)g->a_buf,
1614 g->a_len);
1616 sendreply(r, sd, &timeout, g->a_ctx) != MI_SUCCESS)
1621 (fi_eom = g->a_ctx->ctx_smfi->xxfi_eom) != NULL)
1622 return (*fi_eom)(g->a_ctx);
1637 st_abortfct(g) in st_abortfct() argument
1638 genarg *g; in st_abortfct()
1642 if (g == NULL)
1644 if (g != NULL && g->a_ctx->ctx_smfi != NULL &&
1645 (fi_abort = g->a_ctx->ctx_smfi->xxfi_abort) != NULL)
1646 (void) (*fi_abort)(g->a_ctx);