Author Topic: berval structure  (Read 2205 times)

0 Members and 1 Guest are viewing this topic.

Offline Pierre Bellisle

  • Jr. Member
  • **
  • Posts: 82
  • User-Rate: +11/-7
berval structure
« on: October 24, 2016, 03:11:02 AM »
Hola José.

berval structure

The berval structure represents arbitrary binary data that is encoded according to Basic Encoding Rules (BER).
Use a berval to represent any attribute that cannot be represented by a null-terminated string.

typedef struct berval {
  ULONG bv_len; //Length, in bytes, of binary data.
  PCHAR bv_val; //Pointer to the binary data.
} LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL, BerValue;

3.1.07\Winldap.inc
TYPE berval DWORD
    bv_len AS DWORD     ' ULONG
    bv_val AS BYTE PTR   ' PUCHAR
END TYPE

3.1.07\WinBer.inc
TYPE berval DWORD
    bv_len AS DWORD        ' ULONG
    bv_val AS ASCIIZ PTR   ' PUCHAR
END TYPE

Pierre
« Last Edit: October 24, 2016, 03:13:02 AM by Pierre Bellisle »

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2481
  • User-Rate: +204/-0
Re: berval structure
« Reply #1 on: October 24, 2016, 05:18:25 AM »
Changed it to BYTE PTR. Thanks for spotting it.

Offline Pierre Bellisle

  • Jr. Member
  • **
  • Posts: 82
  • User-Rate: +11/-7
Re: berval structure
« Reply #2 on: October 24, 2016, 07:15:33 PM »
Thank you José.

Pierre