blob: a6edd148d41780bda5ef42c52f538bf91633f7f7 (
plain) (
tree)
|
|
#include "asn1.h"
size_t scan_asn1STRING(const char* src,const char* max,const char** s,size_t* l) {
size_t tmp;
unsigned long tag;
enum asn1_tagclass tc;
enum asn1_tagtype tt;
if ((tmp=scan_asn1string(src,max,&tc,&tt,&tag,s,l)))
if (tc==UNIVERSAL && tt==PRIMITIVE && tag==OCTET_STRING)
return tmp;
return 0;
}
|