Lines Matching defs:sspi_ret

96         SECURITY_STATUS sspi_ret;
104 sspi_ret = ApplyControlToken(&c->ctxt_handle, &BuffDesc);
105 if (sspi_ret != SEC_E_OK)
111 sspi_ret = InitializeSecurityContext(&c->cred_handle, &c->ctxt_handle, s->host,
114 if (sspi_ret == SEC_E_OK || sspi_ret == SEC_I_CONTEXT_EXPIRED) {
149 SECURITY_STATUS sspi_ret;
211 sspi_ret = InitializeSecurityContext(&c->cred_handle, &c->ctxt_handle, s->host, c->request_flags,
216 if (sspi_ret == SEC_E_INCOMPLETE_MESSAGE) {
223 if (sspi_ret == SEC_I_INCOMPLETE_CREDENTIALS &&
232 if (sspi_ret == SEC_I_CONTINUE_NEEDED || sspi_ret == SEC_E_OK) {
249 if (sspi_ret == SEC_E_WRONG_PRINCIPAL)
252 av_log(h, AV_LOG_ERROR, "Creating security context failed (0x%lx)\n", sspi_ret);
262 if (sspi_ret == SEC_I_CONTINUE_NEEDED) {
271 if (sspi_ret == SEC_I_CONTINUE_NEEDED) {
299 SECURITY_STATUS sspi_ret;
309 sspi_ret = InitializeSecurityContext(&c->cred_handle, NULL, s->host, c->request_flags, 0, 0,
312 if (sspi_ret != SEC_I_CONTINUE_NEEDED) {
313 av_log(h, AV_LOG_ERROR, "Unable to create initial security context (0x%lx)\n", sspi_ret);
337 SECURITY_STATUS sspi_ret;
362 sspi_ret = AcquireCredentialsHandle(NULL, (TCHAR *)UNISP_NAME, SECPKG_CRED_OUTBOUND,
365 if (sspi_ret != SEC_E_OK) {
366 av_log(h, AV_LOG_ERROR, "Unable to acquire security credentials (0x%lx)\n", sspi_ret);
388 SECURITY_STATUS sspi_ret = SEC_E_OK;
431 while (c->enc_buf_offset > 0 && sspi_ret == SEC_E_OK) {
441 sspi_ret = DecryptMessage(&c->ctxt_handle, &inbuf_desc, 0, NULL);
442 if (sspi_ret == SEC_E_OK || sspi_ret == SEC_I_RENEGOTIATE ||
443 sspi_ret == SEC_I_CONTEXT_EXPIRED) {
476 if (sspi_ret == SEC_I_RENEGOTIATE) {
488 sspi_ret = SEC_E_OK;
490 } else if (sspi_ret == SEC_I_CONTEXT_EXPIRED) {
499 } else if (sspi_ret == SEC_E_INCOMPLETE_MESSAGE) {
503 av_log(h, AV_LOG_ERROR, "Unable to decrypt message (error 0x%x)\n", (unsigned)sspi_ret);
531 SECURITY_STATUS sspi_ret;
538 sspi_ret = QueryContextAttributes(&c->ctxt_handle, SECPKG_ATTR_STREAM_SIZES, &c->sizes);
539 if (sspi_ret != SEC_E_OK)
563 sspi_ret = EncryptMessage(&c->ctxt_handle, 0, &outbuf_desc, 0);
564 if (sspi_ret == SEC_E_OK) {
574 if (sspi_ret == SEC_E_INSUFFICIENT_MEMORY)