FreeRDP
|
#include <winpr/assert.h>
#include <winpr/print.h>
#include <freerdp/config.h>
#include <freerdp/crypto/per.h>
#include <freerdp/log.h>
Macros | |
#define | TAG FREERDP_TAG("crypto.per") |
#define TAG FREERDP_TAG("crypto.per") |
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.
|
static |
Read PER choice.
s | stream |
choice | choice |
Read PER ENUMERATED.
s | The stream to read from |
enumerated | enumerated result variable, must not be NULL |
count | enumeration count |
BOOL per_read_integer | ( | wStream * | s, |
UINT32 * | integer | ||
) |
Read PER INTEGER.
s | stream |
integer | integer |
Read PER INTEGER (UINT16).
s | The stream to read from |
integer | The integer result variable pointer, must not be NULL |
min | minimum value |
Read PER length.
s | stream to read from |
length | A pointer to return the length read, must not be NULL |
Read PER number of sets.
s | stream |
number | number of sets |
Read PER NumericString.
s | stream |
min | minimum string length |
Read PER OBJECT_IDENTIFIER (OID).
s | The stream to read from |
oid | object identifier (OID) |
Read PER OCTET_STRING.
s | The stream to read from |
oct_str | octet string |
length | string length |
min | minimum length |
Read PER padding with zeros.
s | A stream to read from |
length | the data to write |
Read PER selection.
s | stream |
selection | selection |
Write PER CHOICE.
s | stream |
choice | index of chosen field |
Write PER ENUMERATED.
s | The stream to write to |
enumerated | enumerated |
count | enumeration count |
BOOL per_write_integer | ( | wStream * | s, |
UINT32 | integer | ||
) |
Write PER INTEGER.
s | stream |
integer | integer |
Write PER INTEGER (UINT16).
s | stream |
integer | integer |
min | minimum value |
Write PER length.
s | stream |
length | length |
Write PER number of sets for SET OF.
s | stream |
number | number of sets |
Write PER NumericString.
s | stream |
num_str | numeric string |
length | string length |
min | minimum string length |
Write PER OBJECT_IDENTIFIER (OID)
s | stream |
oid | object identifier (oid) |
Write PER OCTET_STRING
s | stream |
oct_str | octet string |
length | string length |
min | minimum string length |
Write PER padding with zeros.
s | A stream to write to |
length | the data to write |
Write PER selection for OPTIONAL fields.
s | stream |
selection | bit map of selected fields |