Blame include/freerdp/crypto/per.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * ASN.1 Packed Encoding Rules (BER)
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011-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_CRYPTO_PER_H
Packit 1fb8d4
#define FREERDP_CRYPTO_PER_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/stream.h>
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
extern "C"
Packit Service 5a9772
{
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit Service 5a9772
	FREERDP_API BOOL per_read_length(wStream* s, UINT16* length);
Packit Service 5a9772
	FREERDP_API void per_write_length(wStream* s, int length);
Packit Service 5a9772
	FREERDP_API BOOL per_read_choice(wStream* s, BYTE* choice);
Packit Service 5a9772
	FREERDP_API void per_write_choice(wStream* s, BYTE choice);
Packit Service 5a9772
	FREERDP_API BOOL per_read_selection(wStream* s, BYTE* selection);
Packit Service 5a9772
	FREERDP_API void per_write_selection(wStream* s, BYTE selection);
Packit Service 5a9772
	FREERDP_API BOOL per_read_number_of_sets(wStream* s, BYTE* number);
Packit Service 5a9772
	FREERDP_API void per_write_number_of_sets(wStream* s, BYTE number);
Packit Service 5a9772
	FREERDP_API BOOL per_read_padding(wStream* s, int length);
Packit Service 5a9772
	FREERDP_API void per_write_padding(wStream* s, int length);
Packit Service 5a9772
	FREERDP_API BOOL per_read_integer(wStream* s, UINT32* integer);
Packit Service 5a9772
	FREERDP_API BOOL per_read_integer16(wStream* s, UINT16* integer, UINT16 min);
Packit Service 5a9772
	FREERDP_API void per_write_integer(wStream* s, UINT32 integer);
Packit Service 5a9772
	FREERDP_API void per_write_integer16(wStream* s, UINT16 integer, UINT16 min);
Packit Service 5a9772
	FREERDP_API BOOL per_read_enumerated(wStream* s, BYTE* enumerated, BYTE count);
Packit Service 5a9772
	FREERDP_API void per_write_enumerated(wStream* s, BYTE enumerated, BYTE count);
Packit Service 5a9772
	FREERDP_API void per_write_object_identifier(wStream* s, BYTE oid[6]);
Packit Service 5a9772
	FREERDP_API BOOL per_read_object_identifier(wStream* s, BYTE oid[6]);
Packit Service 5a9772
	FREERDP_API BOOL per_read_octet_string(wStream* s, BYTE* oct_str, int length, int min);
Packit Service 5a9772
	FREERDP_API void per_write_octet_string(wStream* s, BYTE* oct_str, int length, int min);
Packit Service 5a9772
	FREERDP_API BOOL per_read_numeric_string(wStream* s, int min);
Packit Service 5a9772
	FREERDP_API void per_write_numeric_string(wStream* s, BYTE* num_str, int length, int min);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CRYPTO_PER_H */