|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* WinPR: Windows Portable Runtime
|
|
Packit |
1fb8d4 |
* Negotiate Security Package
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Copyright 2011-2012 Jiten Pathy
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1fb8d4 |
* you may not use this file except in compliance with the License.
|
|
Packit |
1fb8d4 |
* You may obtain a copy of the License at
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1fb8d4 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1fb8d4 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1fb8d4 |
* See the License for the specific language governing permissions and
|
|
Packit |
1fb8d4 |
* limitations under the License.
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifndef WINPR_SSPI_NEGOTIATE_PRIVATE_H
|
|
Packit |
1fb8d4 |
#define WINPR_SSPI_NEGOTIATE_PRIVATE_H
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include <winpr/sspi.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include "../sspi.h"
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
#define NTLM_OID "1.3.6.1.4.1.311.2.2.10"
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
enum _NEGOTIATE_STATE
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
NEGOTIATE_STATE_INITIAL,
|
|
Packit |
1fb8d4 |
NEGOTIATE_STATE_NEGOINIT,
|
|
Packit |
1fb8d4 |
NEGOTIATE_STATE_NEGORESP,
|
|
Packit |
1fb8d4 |
NEGOTIATE_STATE_FINAL
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef enum _NEGOTIATE_STATE NEGOTIATE_STATE;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _NEGOTIATE_CONTEXT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
NEGOTIATE_STATE state;
|
|
Packit |
1fb8d4 |
UINT32 NegotiateFlags;
|
|
Packit |
1fb8d4 |
PCtxtHandle auth_ctx;
|
|
Packit |
1fb8d4 |
SecBuffer NegoInitMessage;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
CtxtHandle SubContext;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
BOOL kerberos;
|
|
Packit |
1fb8d4 |
SecurityFunctionTableA* sspiA;
|
|
Packit |
1fb8d4 |
SecurityFunctionTableW* sspiW;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _NEGOTIATE_CONTEXT NEGOTIATE_CONTEXT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#endif /* WINPR_SSPI_NEGOTIATE_PRIVATE_H */
|