summaryrefslogtreecommitdiff
path: root/cipher.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-11-17 21:18:23 +1100
committerDamien Miller <djm@mindrot.org>2003-11-17 21:18:23 +1100
commitf58b58ced10c2e9ae899f63d4e915ec9723cf5a1 (patch)
treea40f405796853a41d0da48a47c82a72d3be818fe /cipher.c
parent939cd38122a2fadf9e82c15239ac86ec4cd1baec (diff)
- jakob@cvs.openbsd.org 2003/11/10 16:23:41
[bufaux.c bufaux.h cipher.c cipher.h hostfile.c hostfile.h key.c] [key.h sftp-common.c sftp-common.h sftp-server.c sshconnect.c sshd.c] [ssh-dss.c ssh-rsa.c uuencode.c uuencode.h] constify. ok markus@ & djm@
Diffstat (limited to 'cipher.c')
-rw-r--r--cipher.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cipher.c b/cipher.c
index ce533670b..a1c40cc4a 100644
--- a/cipher.c
+++ b/cipher.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: cipher.c,v 1.65 2003/05/17 04:27:52 markus Exp $"); 38RCSID("$OpenBSD: cipher.c,v 1.66 2003/11/10 16:23:41 jakob Exp $");
39 39
40#include "xmalloc.h" 40#include "xmalloc.h"
41#include "log.h" 41#include "log.h"
@@ -99,19 +99,19 @@ struct Cipher {
99/*--*/ 99/*--*/
100 100
101u_int 101u_int
102cipher_blocksize(Cipher *c) 102cipher_blocksize(const Cipher *c)
103{ 103{
104 return (c->block_size); 104 return (c->block_size);
105} 105}
106 106
107u_int 107u_int
108cipher_keylen(Cipher *c) 108cipher_keylen(const Cipher *c)
109{ 109{
110 return (c->key_len); 110 return (c->key_len);
111} 111}
112 112
113u_int 113u_int
114cipher_get_number(Cipher *c) 114cipher_get_number(const Cipher *c)
115{ 115{
116 return (c->number); 116 return (c->number);
117} 117}
@@ -311,7 +311,7 @@ cipher_set_key_string(CipherContext *cc, Cipher *cipher,
311 */ 311 */
312 312
313int 313int
314cipher_get_keyiv_len(CipherContext *cc) 314cipher_get_keyiv_len(const CipherContext *cc)
315{ 315{
316 Cipher *c = cc->cipher; 316 Cipher *c = cc->cipher;
317 int ivlen; 317 int ivlen;
@@ -397,7 +397,7 @@ cipher_set_keyiv(CipherContext *cc, u_char *iv)
397#endif 397#endif
398 398
399int 399int
400cipher_get_keycontext(CipherContext *cc, u_char *dat) 400cipher_get_keycontext(const CipherContext *cc, u_char *dat)
401{ 401{
402 Cipher *c = cc->cipher; 402 Cipher *c = cc->cipher;
403 int plen = 0; 403 int plen = 0;