diff options
author | Damien Miller <djm@mindrot.org> | 2003-11-17 21:18:23 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-11-17 21:18:23 +1100 |
commit | f58b58ced10c2e9ae899f63d4e915ec9723cf5a1 (patch) | |
tree | a40f405796853a41d0da48a47c82a72d3be818fe /cipher.c | |
parent | 939cd38122a2fadf9e82c15239ac86ec4cd1baec (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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: cipher.c,v 1.65 2003/05/17 04:27:52 markus Exp $"); | 38 | RCSID("$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 | ||
101 | u_int | 101 | u_int |
102 | cipher_blocksize(Cipher *c) | 102 | cipher_blocksize(const Cipher *c) |
103 | { | 103 | { |
104 | return (c->block_size); | 104 | return (c->block_size); |
105 | } | 105 | } |
106 | 106 | ||
107 | u_int | 107 | u_int |
108 | cipher_keylen(Cipher *c) | 108 | cipher_keylen(const Cipher *c) |
109 | { | 109 | { |
110 | return (c->key_len); | 110 | return (c->key_len); |
111 | } | 111 | } |
112 | 112 | ||
113 | u_int | 113 | u_int |
114 | cipher_get_number(Cipher *c) | 114 | cipher_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 | ||
313 | int | 313 | int |
314 | cipher_get_keyiv_len(CipherContext *cc) | 314 | cipher_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 | ||
399 | int | 399 | int |
400 | cipher_get_keycontext(CipherContext *cc, u_char *dat) | 400 | cipher_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; |