Lines Matching defs:utils
108 get_oid(const sasl_utils_t *utils, gss_OID *oid);
138 const sasl_utils_t *utils;
194 sasl_gss_seterror(const sasl_utils_t *utils, OM_uint32 maj, OM_uint32 min)
204 const sasl_utils_t *utils = text->utils;
211 if(!utils) return;
214 ret = _plug_buf_alloc(utils, &out, &curlen, 256);
231 utils->log(text->utils->conn, SASL_LOG_FAIL,
236 utils->seterror(utils->conn, 0,
243 utils->seterror(utils->conn, 0,
250 utils->free(out);
255 ret = _plug_buf_alloc(utils, &out, &curlen, len);
258 utils->free(out);
273 ret = _plug_buf_alloc(utils, &out, &curlen, len);
275 utils->free(out);
293 utils->log(text->utils->conn, SASL_LOG_FAIL,
298 utils->seterror(utils->conn, 0,
305 utils->seterror(utils->conn, 0,
312 utils->free(out);
317 ret = _plug_buf_alloc(utils, &out, &curlen, len);
320 utils->free(out);
333 ret = _plug_buf_alloc(utils, &out, &curlen, len);
335 utils->free(out);
343 utils->log(text->utils->conn, SASL_LOG_FAIL, out);
345 utils->seterror(utils->conn, 0, out);
348 utils->seterror(utils->conn, 0, out);
350 utils->free(out);
367 ret = _plug_iovec_to_buf(text->utils, invec, numiov, &text->enc_in_buf);
401 sasl_gss_seterror(text->utils, maj_stat, min_stat);
413 ret = _plug_buf_alloc(text->utils, &(text->encode_buf),
474 SETERROR(text->utils, gettext("GSSAPI Failure"));
476 SETERROR(text->utils, "GSSAPI Failure");
499 text->utils->log(text->utils->conn, SASL_LOG_ERR,
503 SETERROR(text->utils, "Illegal size in sasl_gss_decode_once");
509 result = _plug_buf_alloc(text->utils, &text->buffer,
561 sasl_gss_seterror(text->utils, maj_stat, min_stat);
575 result = _plug_buf_alloc(text->utils, &text->decode_once_buf,
610 ret = _plug_decode(text->utils, context, input, inputlen,
619 static context_t *gss_new_context(const sasl_utils_t *utils)
623 ret = utils->malloc(sizeof(context_t));
627 ret->utils = utils;
634 if (get_oid(utils, &ret->mech_oid) != SASL_OK) {
635 utils->free(ret);
684 text->utils->free(text->out_buf);
689 text->utils->free(text->encode_buf);
694 text->utils->free(text->decode_buf);
699 text->utils->free(text->decode_once_buf);
704 if(text->enc_in_buf->data) text->utils->free(text->enc_in_buf->data);
705 text->utils->free(text->enc_in_buf);
710 text->utils->free(text->buffer);
715 text->utils->free(text->authid);
727 get_oid(const sasl_utils_t *utils, gss_OID *oid)
746 sasl_gss_seterror(text->utils, maj_stat, min_stat);
753 sasl_gss_seterror(text->utils, maj_stat, min_stat);
763 const sasl_utils_t *utils)
769 convert_prompt(utils, &((context_t *)conn_context)->h, NULL);
779 utils->free(conn_context);
797 text = gss_new_context(params->utils);
803 MEMERROR(params->utils);
845 PARAMERROR(text->utils);
857 name_token.value = (char *)params->utils->malloc((name_token.length + 1) * sizeof(char));
859 MEMERROR(text->utils);
875 params->utils->free(name_token.value);
879 sasl_gss_seterror(text->utils, maj_stat, min_stat);
918 sasl_gss_seterror(text->utils, maj_stat, min_stat);
945 sasl_gss_log(text->utils, maj_stat, min_stat);
946 text->utils->seterror(text->utils->conn, SASL_NOLOG,
955 text->utils->seterror(text->utils->conn, SASL_NOLOG, "GSSAPI Failure: gss_accept_sec_context");
956 text->utils->log(NULL, SASL_LOG_DEBUG, "GSSAPI Failure: gss_accept_sec_context");
966 ret = _plug_buf_alloc(text->utils, &(text->out_buf),
1017 params->utils->free(name_without_realm.value);
1027 SETERROR(text->utils, gettext("GSSAPI Failure"));
1029 SETERROR(text->utils, "GSSAPI Failure");
1045 MEMERROR(text->utils);
1068 params->utils->free(name_without_realm.value);
1073 SETERROR(text->utils, "GSSAPI Failure");
1084 params->utils->free(name_without_realm.value);
1089 SETERROR(text->utils, "GSSAPI Failure");
1103 MEMERROR(params->utils);
1110 MEMERROR(params->utils);
1116 ret = _plug_strdup(params->utils, name_token.value,
1129 params->utils->free(name_without_realm.value);
1159 params->utils->log(params->utils->conn, SASL_LOG_ERR,
1162 params->utils->seterror(params->utils->conn, 0,
1192 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1204 ret = _plug_buf_alloc(text->utils, &(text->out_buf),
1237 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1260 text->utils->log(text->utils->conn, SASL_LOG_ERR,
1263 SETERROR(text->utils,
1277 ret = params->canon_user(params->utils->conn,
1287 ret = params->canon_user(params->utils->conn,
1299 ret = params->canon_user(params->utils->conn,
1311 text->utils->log(text->utils->conn, SASL_LOG_ERR,
1314 SETERROR(text->utils,
1338 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1372 params->utils->log(text->utils->conn, SASL_LOG_ERR,
1375 params->utils->log(NULL, SASL_LOG_ERR,
1439 const sasl_utils_t *utils __attribute__((unused)),
1441 const sasl_utils_t *utils,
1465 utils->getopt(utils->getopt_context, "GSSAPI", "keytab", &keytab, &rl);
1468 utils->log(NULL, SASL_LOG_ERR,
1475 utils->log(NULL, SASL_LOG_ERR,
1518 text = gss_new_context(params->utils);
1524 MEMERROR(params->utils);
1535 params->utils->getopt(params->utils->getopt_context,
1585 auth_result = _plug_get_authid(params->utils,
1596 user_result = _plug_get_userid(params->utils, &text->user,
1609 user_result = _plug_get_userid(params->utils, &text->user,
1620 params->utils->free(*prompt_need);
1630 int result = _plug_make_prompts(params->utils, &text->h,
1633 convert_prompt(params->utils, &text->h,
1637 convert_prompt(params->utils, &text->h,
1644 int result = _plug_make_prompts(params->utils, prompt_need,
1664 _plug_make_prompts(params->utils, prompt_need,
1680 name_token.value = (char *)params->utils->malloc((name_token.length + 1) * sizeof(char));
1688 text->utils->log(text->utils->conn, SASL_LOG_ERR,
1691 SETERROR(text->utils, "GSSAPI Failure: no serverFQDN");
1708 params->utils->free(name_token.value);
1712 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1762 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1788 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1818 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1829 ret = _plug_buf_alloc(text->utils, &(text->out_buf),
1854 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1869 SETERROR(text->utils, gettext("GSSAPI Failure"));
1871 SETERROR(text->utils, "GSSAPI Failure");
1878 ret = params->canon_user(params->utils->conn,
1882 ret = params->canon_user(params->utils->conn,
1886 ret = params->canon_user(params->utils->conn,
1918 sasl_gss_seterror(text->utils, maj_stat, min_stat);
1992 sasl_gss_seterror(text->utils, maj_stat, min_stat);
2029 (char *)params->utils->malloc((input_token->length + 1)*sizeof(char));
2063 params->utils->free(input_token->value);
2067 sasl_gss_seterror(text->utils, maj_stat, min_stat);
2078 ret = _plug_buf_alloc(text->utils, &(text->out_buf),
2100 params->utils->log(params->utils->conn, SASL_LOG_ERR,
2103 params->utils->log(NULL, SASL_LOG_ERR,
2172 int gssapiv2_client_plug_init(const sasl_utils_t *utils __attribute__((unused)),
2179 SETERROR(utils, "Version mismatch in GSSAPI");