FreeRDP
|
FREERDP_API BOOL per_read_choice | ( | wStream * | s, |
BYTE * | choice | ||
) |
Read PER choice.
s | stream |
choice | choice |
FREERDP_API BOOL per_read_enumerated | ( | wStream * | s, |
BYTE * | enumerated, | ||
BYTE | count | ||
) |
Read PER ENUMERATED.
s | The stream to read from |
enumerated | enumerated result variable, must not be NULL |
count | enumeration count |
FREERDP_API BOOL per_read_integer | ( | wStream * | s, |
UINT32 * | integer | ||
) |
Read PER INTEGER.
s | stream |
integer | integer |
FREERDP_API BOOL per_read_integer16 | ( | wStream * | s, |
UINT16 * | integer, | ||
UINT16 | min | ||
) |
Read PER INTEGER (UINT16).
s | The stream to read from |
integer | The integer result variable pointer, must not be NULL |
min | minimum value |
FREERDP_API BOOL per_read_length | ( | wStream * | s, |
UINT16 * | length | ||
) |
FreeRDP: A Remote Desktop Protocol Implementation ASN.1 Packed Encoding Rules (BER)
Copyright 2011-2012 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Read PER length.
s | stream to read from |
length | A pointer to return the length read, must not be NULL |
FREERDP_API BOOL per_read_number_of_sets | ( | wStream * | s, |
BYTE * | number | ||
) |
Read PER number of sets.
s | stream |
number | number of sets |
FREERDP_API BOOL per_read_numeric_string | ( | wStream * | s, |
UINT16 | min | ||
) |
Read PER NumericString.
s | stream |
min | minimum string length |
FREERDP_API BOOL per_read_object_identifier | ( | wStream * | s, |
const BYTE | oid[6] | ||
) |
Read PER OBJECT_IDENTIFIER (OID).
s | The stream to read from |
oid | object identifier (OID) |
FREERDP_API BOOL per_read_octet_string | ( | wStream * | s, |
const BYTE * | oct_str, | ||
UINT16 | length, | ||
UINT16 | min | ||
) |
Read PER OCTET_STRING.
s | The stream to read from |
oct_str | octet string |
length | string length |
min | minimum length |
FREERDP_API BOOL per_read_padding | ( | wStream * | s, |
UINT16 | length | ||
) |
Read PER padding with zeros.
s | A stream to read from |
length | the data to write |
FREERDP_API BOOL per_read_selection | ( | wStream * | s, |
BYTE * | selection | ||
) |
Read PER selection.
s | stream |
selection | selection |
FREERDP_API BOOL per_write_choice | ( | wStream * | s, |
BYTE | choice | ||
) |
Write PER CHOICE.
s | stream |
choice | index of chosen field |
FREERDP_API BOOL per_write_enumerated | ( | wStream * | s, |
BYTE | enumerated, | ||
BYTE | count | ||
) |
Write PER ENUMERATED.
s | The stream to write to |
enumerated | enumerated |
count | enumeration count |
FREERDP_API BOOL per_write_integer | ( | wStream * | s, |
UINT32 | integer | ||
) |
Write PER INTEGER.
s | stream |
integer | integer |
FREERDP_API BOOL per_write_integer16 | ( | wStream * | s, |
UINT16 | integer, | ||
UINT16 | min | ||
) |
Write PER INTEGER (UINT16).
s | stream |
integer | integer |
min | minimum value |
FREERDP_API BOOL per_write_length | ( | wStream * | s, |
UINT16 | length | ||
) |
Write PER length.
s | stream |
length | length |
FREERDP_API BOOL per_write_number_of_sets | ( | wStream * | s, |
BYTE | number | ||
) |
Write PER number of sets for SET OF.
s | stream |
number | number of sets |
FREERDP_API BOOL per_write_numeric_string | ( | wStream * | s, |
const BYTE * | num_str, | ||
UINT16 | length, | ||
UINT16 | min | ||
) |
Write PER NumericString.
s | stream |
num_str | numeric string |
length | string length |
min | minimum string length |
FREERDP_API BOOL per_write_object_identifier | ( | wStream * | s, |
const BYTE | oid[6] | ||
) |
Write PER OBJECT_IDENTIFIER (OID)
s | stream |
oid | object identifier (oid) |
FREERDP_API BOOL per_write_octet_string | ( | wStream * | s, |
const BYTE * | oct_str, | ||
UINT16 | length, | ||
UINT16 | min | ||
) |
Write PER OCTET_STRING
s | stream |
oct_str | octet string |
length | string length |
min | minimum string length |
FREERDP_API BOOL per_write_padding | ( | wStream * | s, |
UINT16 | length | ||
) |
Write PER padding with zeros.
s | A stream to write to |
length | the data to write |
FREERDP_API BOOL per_write_selection | ( | wStream * | s, |
BYTE | selection | ||
) |
Write PER selection for OPTIONAL fields.
s | stream |
selection | bit map of selected fields |