be more strict with signed/unsigned
This commit is contained in:
8
ldap.h
8
ldap.h
@@ -99,11 +99,13 @@ void freepal(struct PartialAttributeList* a);
|
||||
|
||||
int scan_ldapstring(const char* src,const char* max,struct string* s);
|
||||
int scan_ldapmessage(const char* src,const char* max,
|
||||
long* messageid,long* op,long* len);
|
||||
unsigned long* messageid,unsigned long* op,
|
||||
unsigned long* len);
|
||||
int scan_ldapbindrequest(const char* src,const char* max,
|
||||
long* version,struct string* name,long* method);
|
||||
unsigned long* version,struct string* name,
|
||||
unsigned long* method);
|
||||
int scan_ldapbindresponse(const char* src,const char* max,
|
||||
long* result,struct string* matcheddn,
|
||||
unsigned long* result,struct string* matcheddn,
|
||||
struct string* errormessage,struct string* referral);
|
||||
int scan_ldapava(const char* src,const char* max,struct AttributeValueAssertion* a);
|
||||
int scan_ldapsearchfilter(const char* src,const char* max,struct Filter** f);
|
||||
|
||||
1
parse.c
1
parse.c
@@ -1,3 +1,4 @@
|
||||
#include <alloca.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
#include "ldap.h"
|
||||
|
||||
int scan_ldapbindrequest(const char* src,const char* max,
|
||||
long* version,struct string* name,long* method) {
|
||||
unsigned long* version,struct string* name,
|
||||
unsigned long* method) {
|
||||
int res,tmp;
|
||||
if (!(res=scan_asn1INTEGER(src,max,version))) return 0;
|
||||
if (!(tmp=scan_ldapstring(src+res,max,name))) return 0;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "ldap.h"
|
||||
|
||||
int scan_ldapbindresponse(const char* src,const char* max,
|
||||
long* result,struct string* matcheddn,
|
||||
unsigned long* result,struct string* matcheddn,
|
||||
struct string* errormessage,struct string* referral) {
|
||||
int res,tmp;
|
||||
if (!(res=scan_asn1ENUMERATED(src,max,result))) return 0;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "ldap.h"
|
||||
|
||||
int scan_ldapmessage(const char* src,const char* max,
|
||||
long* messageid,long* op,long* len) {
|
||||
unsigned long* messageid,unsigned long* op,unsigned long* len) {
|
||||
int res,tmp;
|
||||
if (!(res=scan_asn1SEQUENCE(src,max,len))) goto error;
|
||||
if (!(tmp=scan_asn1INTEGER(src+res,max,messageid))) goto error;
|
||||
|
||||
Reference in New Issue
Block a user