cscg24-guacamole

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

der.h (1449B)


      1/**
      2 * FreeRDP: A Remote Desktop Protocol Implementation
      3 * ASN.1 Basic Encoding Rules (DER)
      4 *
      5 * Copyright 2011 Samsung, Author Jiten Pathy
      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_DER_H
     21#define FREERDP_CRYPTO_DER_H
     22
     23#include <freerdp/crypto/er.h>
     24
     25#ifdef __cplusplus
     26extern "C"
     27{
     28#endif
     29
     30	FREERDP_API int _der_skip_length(int length);
     31	FREERDP_API int der_write_length(wStream* s, int length);
     32	FREERDP_API int der_get_content_length(int length);
     33	FREERDP_API int der_skip_octet_string(int length);
     34	FREERDP_API int der_skip_sequence_tag(int length);
     35	FREERDP_API int der_write_sequence_tag(wStream* s, int length);
     36	FREERDP_API int der_skip_contextual_tag(int length);
     37	FREERDP_API int der_write_contextual_tag(wStream* s, BYTE tag, int length, BOOL pc);
     38	FREERDP_API void der_write_octet_string(wStream* s, BYTE* oct_str, int length);
     39
     40#ifdef __cplusplus
     41}
     42#endif
     43
     44#endif /* FREERDP_CRYPTO_DER_H */