GUAC-598: Use unsigned instead of u_ type.

This commit is contained in:
Michael Jumper 2014-04-11 13:36:18 -07:00
parent 624048d248
commit 5f84cbc5e4
2 changed files with 4 additions and 4 deletions

View File

@ -141,13 +141,13 @@ void ssh_key_free(ssh_key* key) {
free(key); free(key);
} }
int ssh_key_sign(ssh_key* key, const char* data, int length, u_char* sig) { int ssh_key_sign(ssh_key* key, const char* data, int length, unsigned char* sig) {
const EVP_MD* md; const EVP_MD* md;
EVP_MD_CTX md_ctx; EVP_MD_CTX md_ctx;
u_char digest[EVP_MAX_MD_SIZE]; unsigned char digest[EVP_MAX_MD_SIZE];
u_int dlen, len; unsigned int dlen, len;
/* Get SHA1 digest */ /* Get SHA1 digest */
if ((md = EVP_get_digestbynid(NID_sha1)) == NULL) if ((md = EVP_get_digestbynid(NID_sha1)) == NULL)

View File

@ -126,7 +126,7 @@ void ssh_key_free(ssh_key* key);
* Signs the given data using the given key, returning the length of the * Signs the given data using the given key, returning the length of the
* signature in bytes, or a value less than zero on error. * signature in bytes, or a value less than zero on error.
*/ */
int ssh_key_sign(ssh_key* key, const char* data, int length, u_char* sig); int ssh_key_sign(ssh_key* key, const char* data, int length, unsigned char* sig);
#endif #endif