@@ -4767,9 +4767,10 @@ static int DoUserAuthRequestPassword(WOLFSSH* ssh, WS_UserAuthData* authData,
47674767/* Utility for DoUserAuthRequestPublicKey() */
47684768/* returns negative for error, positive is size of digest. */
47694769static int DoUserAuthRequestRsa (WOLFSSH * ssh , WS_UserAuthData_PublicKey * pk ,
4770- byte hashId , byte * digest , word32 digestSz )
4770+ enum wc_HashType hashId , byte * digest ,
4771+ word32 digestSz )
47714772{
4772- enum wc_HashType enmhashId = ( enum wc_HashType ) hashId ;
4773+ enum wc_HashType enmhashId = hashId ;
47734774 byte * checkDigest = NULL ;
47744775 byte * encDigest = NULL ;
47754776 int checkDigestSz ;
@@ -4936,9 +4937,10 @@ static int DoUserAuthRequestRsa(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
49364937#ifdef WOLFSSH_CERTS
49374938/* return WS_SUCCESS on success */
49384939static int DoUserAuthRequestRsaCert (WOLFSSH * ssh , WS_UserAuthData_PublicKey * pk ,
4939- byte hashId , byte * digest , word32 digestSz )
4940+ enum wc_HashType hashId , byte * digest ,
4941+ word32 digestSz )
49404942{
4941- enum wc_HashType enmhashId = ( enum wc_HashType ) hashId ;
4943+ enum wc_HashType enmhashId = hashId ;
49424944 byte * checkDigest = NULL ;
49434945 byte * encDigest = NULL ;
49444946 int checkDigestSz ;
@@ -5107,7 +5109,8 @@ static int DoUserAuthRequestRsaCert(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
51075109/* Utility for DoUserAuthRequestPublicKey() */
51085110/* returns negative for error, positive is size of digest. */
51095111static int DoUserAuthRequestEcc (WOLFSSH * ssh , WS_UserAuthData_PublicKey * pk ,
5110- byte hashId , byte * digest , word32 digestSz )
5112+ enum wc_HashType hashId , byte * digest ,
5113+ word32 digestSz )
51115114{
51125115 const byte * publicKeyType ;
51135116 word32 publicKeyTypeSz = 0 ;
@@ -5270,7 +5273,8 @@ static int DoUserAuthRequestEcc(WOLFSSH* ssh, WS_UserAuthData_PublicKey* pk,
52705273
52715274#ifdef WOLFSSH_CERTS
52725275static int DoUserAuthRequestEccCert (WOLFSSH * ssh , WS_UserAuthData_PublicKey * pk ,
5273- byte hashId , byte * digest , word32 digestSz )
5276+ enum wc_HashType hashId , byte * digest ,
5277+ word32 digestSz )
52745278{
52755279 const byte * publicKeyType ;
52765280 word32 publicKeyTypeSz = 0 ;
0 commit comments