file
ldap_syntaxes.h
Functions
- auto validate_boolean(const char* value) -> bool
- validate_boolean Validates array if indeed boolean value.
- auto validate_integer(const char* value) -> bool
- validate_integer Validates array if indeed integer value.
- auto validate_octet_string(const char* value) -> bool
- validate_octet_string Validates array if indeed integer value.
- auto validate_oid(const char* value) -> bool
- validate_oid Validates array if indeed integer value.
- auto validate_numeric_string(const char* value) -> bool
- auto validate_printable_string(const char* value) -> bool
- auto validate_case_ignore_string(const char* value) -> bool
- auto validate_ia5_string(const char* value) -> bool
- auto validate_utc_time(const char* value) -> bool
- auto validate_generalized_time(const char* value) -> bool
- auto validate_case_sensitive_string(const char* value) -> bool
- auto validate_directory_string(const char* value) -> bool
- auto validate_large_integer(const char* value) -> bool
- validate_large_integer Validates array if indeed int64 value.
- auto validate_object_security_descriptor(const char* value) -> bool
- auto validate_dn(const char* value) -> bool
- auto validate_dn_with_octet_string(const char* value) -> bool
- auto validate_or_name(const char* value) -> bool
- auto validate_presentation_address(const char* value) -> bool
- auto validate_access_point(const char* value) -> bool
- auto validate_dn_with_string(const char* value) -> bool
Function documentation
bool validate_boolean(const char* value)
validate_boolean Validates array if indeed boolean value.
Parameters | |
---|---|
value in | NULL terminated array of char to verify. |
Returns |
|
The function validate_boolean takes in a string and checks if it matches the format of a boolean value as defined by RFC 4517. The function returns True if the input string is either "TRUE" or "FALSE", otherwise it returns False. From RFC 4517 : Boolean = "TRUE" / "FALSE"
bool validate_integer(const char* value)
validate_integer Validates array if indeed integer value.
Parameters | |
---|---|
value in | NULL terminated array of char to verify. |
Returns |
|
The function validate_integer takes in a string and checks if it matches the format of a integer value as defined by RFC 4517. The function returns True if the input string is integer value, otherwise it returns False. From RFC 4517 : Integer = ( HYPHEN LDIGIT *DIGIT ) | number From RFC 4512 : number = DIGIT | ( LDIGIT 1*DIGIT ) DIGIT = x30 | LDIGIT ; "0"-"9" LDIGIT = x31-39 ; "1"-"9" HYPHEN = x2D ; hyphen ("-")
bool validate_octet_string(const char* value)
validate_octet_string Validates array if indeed integer value.
Returns |
|
---|
The function validate_octet_string takes in a string and checks if it matches the format of a octet string value as defined by RFC 4517. The function returns True if the input string is octet string value, otherwise it returns False. From RFC 4517 : OctetString = *OCTET OCTET = x00-FF ; Any octet (8-bit data unit)
bool validate_oid(const char* value)
validate_oid Validates array if indeed integer value.
Returns |
|
---|
The function validate_oid takes in a string and checks if it matches the format of a OID value as defined by RFC 4517. The function returns True if the input string is OID value, otherwise it returns False. From RFC 4517 : OctetString = *OCTET OCTET = x00-FF ; Any octet (8-bit data unit)
bool validate_large_integer(const char* value)
validate_large_integer Validates array if indeed int64 value.
Parameters | |
---|---|
value in | NULL terminated array of char to verify. |
Returns |
|
The function validate_large_integer takes in a string and checks if it matches the format of a large integer value as defined by RFC 4517. The function returns True if the input string is large integer value, otherwise it returns False. From RFC 4517 : Integer = ( HYPHEN LDIGIT *DIGIT ) | number From RFC 4512 : number = DIGIT | ( LDIGIT 1*DIGIT ) DIGIT = x30 | LDIGIT ; "0"-"9" LDIGIT = x31-39 ; "1"-"9" HYPHEN = x2D ; hyphen ("-")