Blame libfreerdp/core/nla.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Network Level Authentication (NLA)
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
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 FREERDP_LIB_CORE_NLA_H
Packit 1fb8d4
#define FREERDP_LIB_CORE_NLA_H
Packit 1fb8d4
Packit 1fb8d4
typedef struct rdp_nla rdpNla;
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
#include <freerdp/freerdp.h>
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/sspi.h>
Packit 1fb8d4
#include <winpr/stream.h>
Packit 1fb8d4
#include <winpr/crypto.h>
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/crypto/tls.h>
Packit 1fb8d4
#include <freerdp/crypto/ber.h>
Packit 1fb8d4
#include <freerdp/crypto/der.h>
Packit 1fb8d4
#include <freerdp/crypto/crypto.h>
Packit 1fb8d4
Packit 1fb8d4
#include "transport.h"
Packit 1fb8d4
Packit 1fb8d4
enum _NLA_STATE
Packit 1fb8d4
{
Packit 1fb8d4
	NLA_STATE_INITIAL,
Packit 1fb8d4
	NLA_STATE_NEGO_TOKEN,
Packit 1fb8d4
	NLA_STATE_PUB_KEY_AUTH,
Packit 1fb8d4
	NLA_STATE_AUTH_INFO,
Packit 1fb8d4
	NLA_STATE_POST_NEGO,
Packit 1fb8d4
	NLA_STATE_FINAL
Packit 1fb8d4
};
Packit 1fb8d4
typedef enum _NLA_STATE NLA_STATE;
Packit 1fb8d4
Packit 1fb8d4
FREERDP_LOCAL int nla_authenticate(rdpNla* nla);
Packit Service 5a9772
FREERDP_LOCAL LPTSTR nla_make_spn(const char* ServiceClass, const char* hostname);
Packit 1fb8d4
Packit 1fb8d4
FREERDP_LOCAL int nla_client_begin(rdpNla* nla);
Packit 1fb8d4
FREERDP_LOCAL int nla_recv_pdu(rdpNla* nla, wStream* s);
Packit 1fb8d4
Packit Service 5a9772
FREERDP_LOCAL SEC_WINNT_AUTH_IDENTITY* nla_get_identity(rdpNla* nla);
Packit Service 5a9772
Packit Service 5a9772
FREERDP_LOCAL NLA_STATE nla_get_state(rdpNla* nla);
Packit Service 5a9772
FREERDP_LOCAL BOOL nla_set_state(rdpNla* nla, NLA_STATE state);
Packit Service 5a9772
Packit Service 5a9772
FREERDP_LOCAL BOOL nla_set_service_principal(rdpNla* nla, LPSTR principal);
Packit Service 5a9772
Packit Service 5a9772
FREERDP_LOCAL BOOL nla_impersonate(rdpNla* nla);
Packit Service 5a9772
FREERDP_LOCAL BOOL nla_revert_to_self(rdpNla* nla);
Packit Service 5a9772
Packit Service 5a9772
FREERDP_LOCAL rdpNla* nla_new(freerdp* instance, rdpTransport* transport, rdpSettings* settings);
Packit 1fb8d4
FREERDP_LOCAL void nla_free(rdpNla* nla);
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_LIB_CORE_NLA_H */