BerParser.h
1 /** 2 * @file BerParser.h 3 * @author Rene Ceska xceska06 (xceska06@stud.fit.vutbr.cz) 4 * @brief Parser for BER LDAP 5 * @date 2023-11-19 6 */ 7 8 #ifndef BERPARSER_H 9 #define BERPARSER_H 10 #include "inc/BerObject.h" 11 #include "inc/ber_constants.h" 12 #include "inc/ber_helper_functions.h" 13 #include "inc/BerEnumObject.h" 14 #include "inc/BerStringObject.h" 15 #include "inc/BerSetObject.h" 16 #include "inc/BerSequenceObject.h" 17 #include "inc/BerSetObject.h" 18 #include "inc/BerIntObject.h" 19 #include "inc/BerBoolObject.h" 20 #include "inc/BerUndefinedObject.h" 21 #include <vector> 22 23 /** 24 * @brief Parses BER and converts it to BerObject 25 * 26 * @param start start of the BER 27 * @param err 1 if error, 0 if success 28 * @param end end of the array 29 * @return BerObject* 30 */ 31 BerObject *ParseBerObject(std::vector<unsigned char>::iterator start, 32 int *err,std::vector<unsigned char>::iterator end); 33 34 #endif