X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authobj.h;fp=authobj.h;h=6814264efbd70f5abb65a8823c7f97d2244c4168;hp=158c52c7d3d145e03845b2742d10e9cbce577be6;hb=cc9b90217adb5f69875fb9196adf08473b618ad0;hpb=a91fa6c2aaa95825f3d9db6c7ed9291e7b2b7263 diff --git a/authobj.h b/authobj.h index 158c52c..6814264 100644 --- a/authobj.h +++ b/authobj.h @@ -35,18 +35,18 @@ struct _auth_obj { unsigned char *buffer; /* to be free()'d if not NULL */ const char *err; /* non-NULL if failed */ unsigned char *data; - int datasize; + size_t datasize; unsigned char *payload; - int paylsize; + size_t paylsize; }; /* Construct new or repack old authobj, return payload */ struct _auth_obj authobj(const char *userid, const char *password, const char *oldnonce, const char *newnonce, - const unsigned char *secret, const int secsize, - const unsigned char *payload, const int paysize, - const unsigned char *ablob, const int blobsize, + const unsigned char *secret, const size_t secsize, + const unsigned char *payload, const size_t paysize, + const unsigned char *ablob, const size_t blobsize, struct _auth_chunk (*fetch_key)(const unsigned char *chal, - const int csize)); + const size_t csize)); #endif