#endif
}
- ret = get_gss_creds(r, conf, &server_creds);
- if (ret)
- goto end;
-
/* ap_getword() shifts parameter */
auth_param = ap_getword_white(r->pool, &auth_line);
if (auth_param == NULL) {
return HTTP_UNAUTHORIZED;
}
- conn_ctx = gss_get_conn_ctx(r);
- if (conn_ctx == NULL) {
+ if ((NULL == (conn_ctx = gss_retrieve_conn_ctx(r))) &&
+ (NULL == (conn_ctx = gss_create_conn_ctx(r, conf)))) {
gss_log(APLOG_MARK, APLOG_ERR, 0, r,
"Failed to create internal context: probably not enough memory");
return HTTP_INTERNAL_SERVER_ERROR;