src/lib/ASN1ContentHandler.h
branchv_0
changeset 40 85b6f13f1088
parent 35 bf2c546f49d1
equal deleted inserted replaced
39:6ef41443211e 40:85b6f13f1088
   258 	virtual ~ASN1ContentHandler() = default;
   258 	virtual ~ASN1ContentHandler() = default;
   259 
   259 
   260 	// TODO: more metadata, support OID decoding and ASN.1 modules (schema), probably through a plug-in
   260 	// TODO: more metadata, support OID decoding and ASN.1 modules (schema), probably through a plug-in
   261 	// TODO: support also extension extractor plug-ins? (could decode some opaque structures like octet strings and replace them with nested elements) e.g. subjectAltName in https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.6
   261 	// TODO: support also extension extractor plug-ins? (could decode some opaque structures like octet strings and replace them with nested elements) e.g. subjectAltName in https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.6
   262 
   262 
       
   263 	/**
       
   264 	 * @param uri identifier of the option
       
   265 	 * @param value value of the option
       
   266 	 * @return whether this option is supported and was applied here
       
   267 	 */
       
   268 	virtual bool setOption(const std::string& uri, const std::string& value) {
       
   269 		return false;
       
   270 	}
       
   271 
   263 	virtual void writeStreamStart() = 0;
   272 	virtual void writeStreamStart() = 0;
   264 	virtual void writeStreamEnd() = 0;
   273 	virtual void writeStreamEnd() = 0;
   265 
   274 
   266 	virtual void writeCollectionStart(const Header& header) = 0;
   275 	virtual void writeCollectionStart(const Header& header) = 0;
   267 	virtual void writeCollectionEnd() = 0;
   276 	virtual void writeCollectionEnd() = 0;