Files
mars-tinyldap/scan_asn1INTEGER.c
leitner 2d32361380 check in work in progress.
Please see README.
2002-01-14 16:14:31 +00:00

13 lines
302 B
C

#include "asn1.h"
int scan_asn1INTEGER(const char* src,const char* max,unsigned long* l) {
int tmp;
long tag;
enum asn1_tagclass tc;
enum asn1_tagtype tt;
if ((tmp=scan_asn1int(src,max,&tc,&tt,&tag,l)))
if (tc==UNIVERSAL || tt==PRIMITIVE || tag==INTEGER)
return tmp;
return 0;
}