cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

per.h (2512B)


      1/**
      2 * FreeRDP: A Remote Desktop Protocol Implementation
      3 * ASN.1 Packed Encoding Rules (BER)
      4 *
      5 * Copyright 2011-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20#ifndef FREERDP_CRYPTO_PER_H
     21#define FREERDP_CRYPTO_PER_H
     22
     23#include <freerdp/api.h>
     24
     25#include <winpr/stream.h>
     26
     27#ifdef __cplusplus
     28extern "C"
     29{
     30#endif
     31
     32	FREERDP_API BOOL per_read_length(wStream* s, UINT16* length);
     33	FREERDP_API void per_write_length(wStream* s, int length);
     34	FREERDP_API BOOL per_read_choice(wStream* s, BYTE* choice);
     35	FREERDP_API void per_write_choice(wStream* s, BYTE choice);
     36	FREERDP_API BOOL per_read_selection(wStream* s, BYTE* selection);
     37	FREERDP_API void per_write_selection(wStream* s, BYTE selection);
     38	FREERDP_API BOOL per_read_number_of_sets(wStream* s, BYTE* number);
     39	FREERDP_API void per_write_number_of_sets(wStream* s, BYTE number);
     40	FREERDP_API BOOL per_read_padding(wStream* s, int length);
     41	FREERDP_API void per_write_padding(wStream* s, int length);
     42	FREERDP_API BOOL per_read_integer(wStream* s, UINT32* integer);
     43	FREERDP_API BOOL per_read_integer16(wStream* s, UINT16* integer, UINT16 min);
     44	FREERDP_API void per_write_integer(wStream* s, UINT32 integer);
     45	FREERDP_API void per_write_integer16(wStream* s, UINT16 integer, UINT16 min);
     46	FREERDP_API BOOL per_read_enumerated(wStream* s, BYTE* enumerated, BYTE count);
     47	FREERDP_API void per_write_enumerated(wStream* s, BYTE enumerated, BYTE count);
     48	FREERDP_API void per_write_object_identifier(wStream* s, BYTE oid[6]);
     49	FREERDP_API BOOL per_read_object_identifier(wStream* s, BYTE oid[6]);
     50	FREERDP_API BOOL per_read_octet_string(wStream* s, BYTE* oct_str, int length, int min);
     51	FREERDP_API void per_write_octet_string(wStream* s, BYTE* oct_str, int length, int min);
     52	FREERDP_API BOOL per_read_numeric_string(wStream* s, int min);
     53	FREERDP_API void per_write_numeric_string(wStream* s, BYTE* num_str, int length, int min);
     54
     55#ifdef __cplusplus
     56}
     57#endif
     58
     59#endif /* FREERDP_CRYPTO_PER_H */