Deleted Added
full compact
apps.c (312826) apps.c (326663)
1/* apps/apps.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 134 unchanged lines hidden (view full) ---

143
144#define NON_MAIN
145#include "apps.h"
146#undef NON_MAIN
147
148#ifdef _WIN32
149static int WIN32_rename(const char *from, const char *to);
150# define rename(from,to) WIN32_rename((from),(to))
1/* apps/apps.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 134 unchanged lines hidden (view full) ---

143
144#define NON_MAIN
145#include "apps.h"
146#undef NON_MAIN
147
148#ifdef _WIN32
149static int WIN32_rename(const char *from, const char *to);
150# define rename(from,to) WIN32_rename((from),(to))
151# ifdef fileno
152# undef fileno
153# endif
154# define fileno(a) (int)_fileno(a)
151#endif
152
153typedef struct {
154 const char *name;
155 unsigned long flag;
156 unsigned long mask;
157} NAME_EX_TBL;
158

--- 2624 unchanged lines hidden (view full) ---

2783 return NULL;
2784
2785 for (i = 0; i <= len; ++i) {
2786 if (i == len || in[i] == ',') {
2787 if (i - start > 255) {
2788 OPENSSL_free(out);
2789 return NULL;
2790 }
155#endif
156
157typedef struct {
158 const char *name;
159 unsigned long flag;
160 unsigned long mask;
161} NAME_EX_TBL;
162

--- 2624 unchanged lines hidden (view full) ---

2787 return NULL;
2788
2789 for (i = 0; i <= len; ++i) {
2790 if (i == len || in[i] == ',') {
2791 if (i - start > 255) {
2792 OPENSSL_free(out);
2793 return NULL;
2794 }
2791 out[start] = i - start;
2795 out[start] = (unsigned char)(i - start);
2792 start = i + 1;
2793 } else
2794 out[i + 1] = in[i];
2795 }
2796
2796 start = i + 1;
2797 } else
2798 out[i + 1] = in[i];
2799 }
2800
2797 *outlen = len + 1;
2801 *outlen = (unsigned char)(len + 1);
2798 return out;
2799}
2800#endif /* ndef OPENSSL_NO_TLSEXT */
2801
2802void print_cert_checks(BIO *bio, X509 *x,
2803 const char *checkhost,
2804 const char *checkemail, const char *checkip)
2805{

--- 474 unchanged lines hidden ---
2802 return out;
2803}
2804#endif /* ndef OPENSSL_NO_TLSEXT */
2805
2806void print_cert_checks(BIO *bio, X509 *x,
2807 const char *checkhost,
2808 const char *checkemail, const char *checkip)
2809{

--- 474 unchanged lines hidden ---