FreeRDP
per.h File Reference
#include <freerdp/api.h>
#include <winpr/stream.h>
This graph shows which files directly or indirectly include this file:

Functions

FREERDP_API BOOL per_read_length (wStream *s, UINT16 *length)
 
FREERDP_API void per_write_length (wStream *s, int length)
 
FREERDP_API BOOL per_read_choice (wStream *s, BYTE *choice)
 
FREERDP_API void per_write_choice (wStream *s, BYTE choice)
 
FREERDP_API BOOL per_read_selection (wStream *s, BYTE *selection)
 
FREERDP_API void per_write_selection (wStream *s, BYTE selection)
 
FREERDP_API BOOL per_read_number_of_sets (wStream *s, BYTE *number)
 
FREERDP_API void per_write_number_of_sets (wStream *s, BYTE number)
 
FREERDP_API BOOL per_read_padding (wStream *s, int length)
 
FREERDP_API void per_write_padding (wStream *s, int length)
 
FREERDP_API BOOL per_read_integer (wStream *s, UINT32 *integer)
 
FREERDP_API BOOL per_read_integer16 (wStream *s, UINT16 *integer, UINT16 min)
 
FREERDP_API void per_write_integer (wStream *s, UINT32 integer)
 
FREERDP_API void per_write_integer16 (wStream *s, UINT16 integer, UINT16 min)
 
FREERDP_API BOOL per_read_enumerated (wStream *s, BYTE *enumerated, BYTE count)
 
FREERDP_API void per_write_enumerated (wStream *s, BYTE enumerated, BYTE count)
 
FREERDP_API void per_write_object_identifier (wStream *s, BYTE oid[6])
 
FREERDP_API BOOL per_read_object_identifier (wStream *s, BYTE oid[6])
 
FREERDP_API BOOL per_read_octet_string (wStream *s, BYTE *oct_str, int length, int min)
 
FREERDP_API void per_write_octet_string (wStream *s, BYTE *oct_str, int length, int min)
 
FREERDP_API BOOL per_read_numeric_string (wStream *s, int min)
 
FREERDP_API void per_write_numeric_string (wStream *s, BYTE *num_str, int length, int min)
 

Function Documentation

FREERDP_API BOOL per_read_choice ( wStream *  s,
BYTE choice 
)

Read PER choice.

Parameters
sstream
choicechoice
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_enumerated ( wStream *  s,
BYTE enumerated,
BYTE  count 
)

Read PER ENUMERATED.

Parameters
sstream
enumeratedenumerated
countenumeration count
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_integer ( wStream *  s,
UINT32 integer 
)

Read PER INTEGER.

Parameters
sstream
integerinteger
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_integer16 ( wStream *  s,
UINT16 integer,
UINT16  min 
)

Read PER INTEGER (UINT16).

Parameters
sstream
integerinteger
minminimum value
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

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.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.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.

FreeRDP: A Remote Desktop Protocol Implementation ASN.1 Packed Encoding Rules (BER)

Copyright 2011-2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.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.

Parameters
sstream
lengthlength
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_number_of_sets ( wStream *  s,
BYTE number 
)

Read PER number of sets.

Parameters
sstream
numbernumber of sets
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_numeric_string ( wStream *  s,
int  min 
)

Read PER NumericString.

Parameters
sstream
num_strnumeric string
lengthstring length
minminimum string length

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_object_identifier ( wStream *  s,
BYTE  oid[6] 
)

Read PER OBJECT_IDENTIFIER (OID).

Parameters
sstream
oidobject identifier (OID)
Warning
It works correctly only for limited set of OIDs.
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_octet_string ( wStream *  s,
BYTE oct_str,
int  length,
int  min 
)

Read PER OCTET_STRING.

Parameters
sstream
oct_stroctet string
lengthstring length
minminimum length
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_padding ( wStream *  s,
int  length 
)

Read PER padding with zeros.

Parameters
sstream
length

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL per_read_selection ( wStream *  s,
BYTE selection 
)

Read PER selection.

Parameters
sstream
selectionselection
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_choice ( wStream *  s,
BYTE  choice 
)

Write PER CHOICE.

Parameters
sstream
choiceindex of chosen field

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_enumerated ( wStream *  s,
BYTE  enumerated,
BYTE  count 
)

Write PER ENUMERATED.

Parameters
sstream
enumeratedenumerated
countenumeration count
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_integer ( wStream *  s,
UINT32  integer 
)

Write PER INTEGER.

Parameters
sstream
integerinteger

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_integer16 ( wStream *  s,
UINT16  integer,
UINT16  min 
)

Write PER INTEGER (UINT16).

Parameters
sstream
integerinteger
minminimum value

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_length ( wStream *  s,
int  length 
)

Write PER length.

Parameters
sstream
lengthlength

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_number_of_sets ( wStream *  s,
BYTE  number 
)

Write PER number of sets for SET OF.

Parameters
sstream
numbernumber of sets

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_numeric_string ( wStream *  s,
BYTE num_str,
int  length,
int  min 
)

Write PER NumericString.

Parameters
sstream
num_strnumeric string
lengthstring length
minminimum string length

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_object_identifier ( wStream *  s,
BYTE  oid[6] 
)

Write PER OBJECT_IDENTIFIER (OID)

Parameters
sstream
oidobject identifier (oid)
Warning
It works correctly only for limited set of OIDs.

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_octet_string ( wStream *  s,
BYTE oct_str,
int  length,
int  min 
)

Write PER OCTET_STRING

Parameters
sstream
oct_stroctet string
lengthstring length
minminimum string length

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_padding ( wStream *  s,
int  length 
)

Write PER padding with zeros.

Parameters
sstream
length

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void per_write_selection ( wStream *  s,
BYTE  selection 
)

Write PER selection for OPTIONAL fields.

Parameters
sstream
selectionbit map of selected fields

Here is the call graph for this function:

Here is the caller graph for this function: