]> andersk Git - openssh.git/blobdiff - openbsd-compat/base64.c
- (tim) [defines.h] Fix regression in long password support on OpenServer 6.
[openssh.git] / openbsd-compat / base64.c
index 91a5ab0ed8248774093cb3162017a0adba5a516b..9a60f583b7e7d3ee6a4c0b1acaa007a29cca81ca 100644 (file)
@@ -42,6 +42,8 @@
  * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
  */
 
+/* OPENBSD ORIGINAL: lib/libc/net/base64.c */
+
 #include "includes.h"
 
 #if (!defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP)) || (!defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON))
@@ -137,7 +139,7 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
        size_t datalength = 0;
        u_char input[3];
        u_char output[4];
-       int i;
+       u_int i;
 
        while (2 < srclength) {
                input[0] = *src++;
@@ -204,7 +206,8 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
 int
 b64_pton(char const *src, u_char *target, size_t targsize)
 {
-       int tarindex, state, ch;
+       u_int tarindex, state;
+       int ch;
        char *pos;
 
        state = 0;
This page took 0.044668 seconds and 4 git commands to generate.