diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-12-03 21:57:37 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-12-03 21:57:37 +0000 |
commit | efa0fcde458fd6b8cf72fbadf64d1e684a76725a (patch) | |
tree | ce86cd51e1e93e5a1459c1ba646eb5aad5d304e9 /sbin | |
parent | 7b5ad9a07ed01b5536374d8b6d1f2db199d39e1d (diff) |
Fix type mismatch. auth_method should be uint8_t.
ok markus@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/crypto.c | 8 | ||||
-rw-r--r-- | sbin/iked/iked.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sbin/iked/crypto.c b/sbin/iked/crypto.c index b9e779ecab1..d0c5a915698 100644 --- a/sbin/iked/crypto.c +++ b/sbin/iked/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.29 2020/11/26 22:24:06 tobhe Exp $ */ +/* $OpenBSD: crypto.c,v 1.30 2020/12/03 21:57:36 tobhe Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -598,7 +598,7 @@ cipher_outlength(struct iked_cipher *encr, size_t inlen) } struct iked_dsa * -dsa_new(uint16_t id, struct iked_hash *prf, int sign) +dsa_new(uint8_t id, struct iked_hash *prf, int sign) { struct iked_dsa *dsap = NULL, dsa; @@ -668,13 +668,13 @@ dsa_new(uint16_t id, struct iked_hash *prf, int sign) } struct iked_dsa * -dsa_sign_new(uint16_t id, struct iked_hash *prf) +dsa_sign_new(uint8_t id, struct iked_hash *prf) { return (dsa_new(id, prf, 1)); } struct iked_dsa * -dsa_verify_new(uint16_t id, struct iked_hash *prf) +dsa_verify_new(uint8_t id, struct iked_hash *prf) { return (dsa_new(id, prf, 0)); } diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h index 29c121d6d09..4e45a78a74f 100644 --- a/sbin/iked/iked.h +++ b/sbin/iked/iked.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iked.h,v 1.177 2020/11/30 21:52:47 tobhe Exp $ */ +/* $OpenBSD: iked.h,v 1.178 2020/12/03 21:57:36 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -918,11 +918,11 @@ size_t cipher_ivlength(struct iked_cipher *); size_t cipher_outlength(struct iked_cipher *, size_t); struct iked_dsa * - dsa_new(uint16_t, struct iked_hash *, int); + dsa_new(uint8_t, struct iked_hash *, int); struct iked_dsa * - dsa_sign_new(uint16_t, struct iked_hash *); + dsa_sign_new(uint8_t, struct iked_hash *); struct iked_dsa * - dsa_verify_new(uint16_t, struct iked_hash *); + dsa_verify_new(uint8_t, struct iked_hash *); struct ibuf * dsa_setkey(struct iked_dsa *, void *, size_t, uint8_t); void dsa_free(struct iked_dsa *); |