2012-03-06 02:03:49 +04:00
|
|
|
/**
|
2012-05-22 06:48:33 +04:00
|
|
|
* WinPR: Windows Portable Runtime
|
2012-03-06 02:03:49 +04:00
|
|
|
* Negotiate Security Package
|
|
|
|
*
|
|
|
|
* Copyright 2011-2012 Jiten Pathy
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-05-22 06:48:33 +04:00
|
|
|
#ifndef WINPR_SSPI_NEGOTIATE_PRIVATE_H
|
|
|
|
#define WINPR_SSPI_NEGOTIATE_PRIVATE_H
|
2012-03-06 02:03:49 +04:00
|
|
|
|
2012-05-05 03:48:53 +04:00
|
|
|
#include <winpr/sspi.h>
|
2012-03-06 02:03:49 +04:00
|
|
|
|
|
|
|
#include "../sspi.h"
|
|
|
|
|
|
|
|
#define NTLM_OID "1.3.6.1.4.1.311.2.2.10"
|
|
|
|
|
|
|
|
enum _NEGOTIATE_STATE
|
|
|
|
{
|
2018-01-16 12:31:08 +03:00
|
|
|
NEGOTIATE_STATE_INITIAL,
|
|
|
|
NEGOTIATE_STATE_NEGOINIT,
|
|
|
|
NEGOTIATE_STATE_NEGORESP,
|
|
|
|
NEGOTIATE_STATE_FINAL
|
2012-03-06 02:03:49 +04:00
|
|
|
};
|
|
|
|
typedef enum _NEGOTIATE_STATE NEGOTIATE_STATE;
|
|
|
|
|
|
|
|
struct _NEGOTIATE_CONTEXT
|
|
|
|
{
|
|
|
|
NEGOTIATE_STATE state;
|
2012-05-25 06:25:44 +04:00
|
|
|
UINT32 NegotiateFlags;
|
2012-05-25 06:20:51 +04:00
|
|
|
PCtxtHandle auth_ctx;
|
2012-03-16 04:37:38 +04:00
|
|
|
SecBuffer NegoInitMessage;
|
2014-06-08 00:26:57 +04:00
|
|
|
|
2014-06-10 22:16:02 +04:00
|
|
|
CtxtHandle SubContext;
|
2014-06-08 00:26:57 +04:00
|
|
|
|
2017-05-11 19:51:45 +03:00
|
|
|
BOOL kerberos;
|
2014-06-08 00:26:57 +04:00
|
|
|
SecurityFunctionTableA* sspiA;
|
|
|
|
SecurityFunctionTableW* sspiW;
|
2012-03-06 02:03:49 +04:00
|
|
|
};
|
|
|
|
typedef struct _NEGOTIATE_CONTEXT NEGOTIATE_CONTEXT;
|
|
|
|
|
2012-05-22 06:48:33 +04:00
|
|
|
#endif /* WINPR_SSPI_NEGOTIATE_PRIVATE_H */
|
2012-03-06 02:03:49 +04:00
|
|
|
|