GUAC-598: Use unsigned instead of u_ type.
This commit is contained in:
parent
624048d248
commit
5f84cbc5e4
@ -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)
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user