Method: Net::BER::Extensions::Array#to_ber_appsequence
- Defined in:
- lib/net/ber/core_ext/array.rb
#to_ber_appsequence(id = 0) ⇒ Object
Converts an Array to an application-specific sequence, assigned a tag value that is meaningful to the particular protocol being used. All values in the Array are expected to be in BER format pr prior to calling this method. – Implementor’s note 20100320(AZ): RFC 4511 (the LDAPv3 protocol) as well as earlier RFCs 1777 and 2559 seem to indicate that LDAP only has application constructed sequences (0x60). However, ldapsearch sends some context-specific constructed sequences (0xA0); other clients may do the same. This behaviour appears to violate the RFCs. In real-world practice, we may need to change calls of #to_ber_appsequence to #to_ber_contextspecific for full LDAP server compatibility.
This note probably belongs elsewhere. ++
37 38 39 40 41 |
# File 'lib/net/ber/core_ext/array.rb', line 37 def to_ber_appsequence(id = 0) # The application sequence tag always starts from the application flag # (0x40) and the constructed flag (0x20). to_ber_seq_internal(0x60 + id) end |