|
@@ -25,27 +25,81 @@
|
|
|
|
|
|
const char SSL_version_str[] = OPENSSL_VERSION_TEXT;
|
|
|
|
|
|
+static int ssl_undefined_function_1(SSL *ssl, SSL3_RECORD *r, size_t s, int t)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ (void)s;
|
|
|
+ (void)t;
|
|
|
+ return ssl_undefined_function(ssl);
|
|
|
+}
|
|
|
+
|
|
|
+static int ssl_undefined_function_2(SSL *ssl, SSL3_RECORD *r, unsigned char *s,
|
|
|
+ int t)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ (void)s;
|
|
|
+ (void)t;
|
|
|
+ return ssl_undefined_function(ssl);
|
|
|
+}
|
|
|
+
|
|
|
+static int ssl_undefined_function_3(SSL *ssl, unsigned char *r,
|
|
|
+ unsigned char *s, size_t t, size_t *u)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ (void)s;
|
|
|
+ (void)t;
|
|
|
+ (void)u;
|
|
|
+ return ssl_undefined_function(ssl);
|
|
|
+}
|
|
|
+
|
|
|
+static int ssl_undefined_function_4(SSL *ssl, int r)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ return ssl_undefined_function(ssl);
|
|
|
+}
|
|
|
+
|
|
|
+static size_t ssl_undefined_function_5(SSL *ssl, const char *r, size_t s,
|
|
|
+ unsigned char *t)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ (void)s;
|
|
|
+ (void)t;
|
|
|
+ return ssl_undefined_function(ssl);
|
|
|
+}
|
|
|
+
|
|
|
+static int ssl_undefined_function_6(int r)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ return ssl_undefined_function(NULL);
|
|
|
+}
|
|
|
+
|
|
|
+static int ssl_undefined_function_7(SSL *ssl, unsigned char *r, size_t s,
|
|
|
+ const char *t, size_t u,
|
|
|
+ const unsigned char *v, size_t w, int x)
|
|
|
+{
|
|
|
+ (void)r;
|
|
|
+ (void)s;
|
|
|
+ (void)t;
|
|
|
+ (void)u;
|
|
|
+ (void)v;
|
|
|
+ (void)w;
|
|
|
+ (void)x;
|
|
|
+ return ssl_undefined_function(ssl);
|
|
|
+}
|
|
|
+
|
|
|
SSL3_ENC_METHOD ssl3_undef_enc_method = {
|
|
|
- /*
|
|
|
- * evil casts, but these functions are only called if there's a library
|
|
|
- * bug
|
|
|
- */
|
|
|
- (int (*)(SSL *, SSL3_RECORD *, size_t, int))ssl_undefined_function,
|
|
|
- (int (*)(SSL *, SSL3_RECORD *, unsigned char *, int))ssl_undefined_function,
|
|
|
+ ssl_undefined_function_1,
|
|
|
+ ssl_undefined_function_2,
|
|
|
ssl_undefined_function,
|
|
|
- (int (*)(SSL *, unsigned char *, unsigned char *, size_t, size_t *))
|
|
|
- ssl_undefined_function,
|
|
|
- (int (*)(SSL *, int))ssl_undefined_function,
|
|
|
- (size_t (*)(SSL *, const char *, size_t, unsigned char *))
|
|
|
- ssl_undefined_function,
|
|
|
+ ssl_undefined_function_3,
|
|
|
+ ssl_undefined_function_4,
|
|
|
+ ssl_undefined_function_5,
|
|
|
NULL, /* client_finished_label */
|
|
|
0, /* client_finished_label_len */
|
|
|
NULL, /* server_finished_label */
|
|
|
0, /* server_finished_label_len */
|
|
|
- (int (*)(int))ssl_undefined_function,
|
|
|
- (int (*)(SSL *, unsigned char *, size_t, const char *,
|
|
|
- size_t, const unsigned char *, size_t,
|
|
|
- int use_context))ssl_undefined_function,
|
|
|
+ ssl_undefined_function_6,
|
|
|
+ ssl_undefined_function_7,
|
|
|
};
|
|
|
|
|
|
struct ssl_async_args {
|