From 9a483f548a0833a15dbb594eb5b48026c0eb93ae Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Mon, 2 Dec 2013 15:48:55 +0400 Subject: [PATCH] tidy const declarations --- authobj.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/authobj.c b/authobj.c index 78eb3f8..ed20d4a 100644 --- a/authobj.c +++ b/authobj.c @@ -3,11 +3,11 @@ #endif #include #include +#include #include #include "serial.h" #include "crypto.h" #include "authobj.h" -#include "pcsc_cr.h" static struct _auth_chunk make_challenge(const char *uid, const char *pass, const char *nonce) @@ -88,7 +88,7 @@ make_key(const char *userid, const char *password, const char *nonce, } static struct _auth_obj -make_authobj(char *userid, char *password, char *nonce, +make_authobj(const char *userid, const char *password, const char *nonce, const unsigned char *secret, const int secsize, const unsigned char *payload, const int paylsize) { @@ -146,7 +146,7 @@ make_authobj(char *userid, char *password, char *nonce, } static struct _auth_obj -parse_authobj(char *userid, char *password, char *nonce, +parse_authobj(const char *userid, const char *password, const char *nonce, const unsigned char *secret, const int secsize, const unsigned char *ablob, const int blobsize, struct _auth_chunk (*fetch_key)(const unsigned char *chal, @@ -201,9 +201,9 @@ struct _auth_obj authobj(const char *userid, const char *password, struct _auth_chunk (*fetch_key)(const unsigned char *chal, const int csize)) { - unsigned char *wsecret; + const unsigned char *wsecret; int wsecsize; - unsigned char *wpayload; + const unsigned char *wpayload; int wpaylsize; struct _auth_obj old_ao = {0}; struct _auth_obj new_ao = {0}; -- 2.39.2