-/* $OpenBSD: d1_both.c,v 1.53 2018/08/27 16:56:46 jsing Exp $ */
+/* $OpenBSD: d1_both.c,v 1.54 2018/08/30 16:56:16 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
ccs_hdr->type = *(data++);
}
-
-int
-dtls1_shutdown(SSL *s)
-{
- int ret;
-
- ret = ssl3_shutdown(s);
- return ret;
-}
-/* $OpenBSD: d1_clnt.c,v 1.80 2018/04/07 17:02:34 jsing Exp $ */
+/* $OpenBSD: d1_clnt.c,v 1.81 2018/08/30 16:56:16 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
.ssl_free = dtls1_free,
.ssl_accept = ssl_undefined_function,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = dtls1_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = dtls1_get_client_method,
.get_timeout = dtls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
-/* $OpenBSD: d1_meth.c,v 1.16 2018/04/07 17:02:34 jsing Exp $ */
+/* $OpenBSD: d1_meth.c,v 1.17 2018/08/30 16:56:16 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
.ssl_free = dtls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = dtls1_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = dtls1_get_method,
.get_timeout = dtls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
-/* $OpenBSD: d1_srvr.c,v 1.93 2018/08/24 17:30:32 jsing Exp $ */
+/* $OpenBSD: d1_srvr.c,v 1.94 2018/08/30 16:56:16 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
.ssl_free = dtls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl_undefined_function,
- .ssl_shutdown = dtls1_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = dtls1_get_server_method,
.get_timeout = dtls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
-/* $OpenBSD: ssl_lib.c,v 1.186 2018/08/24 20:30:21 tb Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.187 2018/08/30 16:56:16 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* (Note that SSL_pending() is often used as a boolean value,
* so we'd better not return -1.)
*/
- return (s->method->internal->ssl_pending(s));
+ return (ssl3_pending(s));
}
X509 *
return (-1);
}
- if ((s != NULL) && !SSL_in_init(s))
- return (s->method->internal->ssl_shutdown(s));
- else
- return (1);
+ if (s != NULL && !SSL_in_init(s))
+ return (ssl3_shutdown(s));
+
+ return (1);
}
int
-/* $OpenBSD: ssl_locl.h,v 1.211 2018/08/27 17:11:32 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.212 2018/08/30 16:56:16 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
int (*ssl_accept)(SSL *s);
int (*ssl_connect)(SSL *s);
- int (*ssl_shutdown)(SSL *s);
int (*ssl_renegotiate)(SSL *s);
int (*ssl_renegotiate_check)(SSL *s);
int len, int peek);
int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len);
- int (*ssl_pending)(const SSL *s);
const struct ssl_method_st *(*get_ssl_method)(int version);
long (*get_timeout)(void);
void dtls1_free(SSL *s);
void dtls1_clear(SSL *s);
long dtls1_ctrl(SSL *s, int cmd, long larg, void *parg);
-int dtls1_shutdown(SSL *s);
long dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok);
int dtls1_get_record(SSL *s);
-/* $OpenBSD: t1_clnt.c,v 1.25 2018/04/07 17:02:34 jsing Exp $ */
+/* $OpenBSD: t1_clnt.c,v 1.26 2018/08/30 16:56:16 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
.ssl_free = tls1_free,
.ssl_accept = ssl_undefined_function,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_client_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl_undefined_function,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_client_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl_undefined_function,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_client_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl_undefined_function,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_client_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
-/* $OpenBSD: t1_meth.c,v 1.24 2018/04/07 17:02:34 jsing Exp $ */
+/* $OpenBSD: t1_meth.c,v 1.25 2018/08/30 16:56:16 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl3_connect,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
-/* $OpenBSD: t1_srvr.c,v 1.26 2018/04/07 17:02:34 jsing Exp $ */
+/* $OpenBSD: t1_srvr.c,v 1.27 2018/08/30 16:56:16 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl_undefined_function,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_server_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl_undefined_function,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_server_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl_undefined_function,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_server_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,
.ssl_free = tls1_free,
.ssl_accept = ssl3_accept,
.ssl_connect = ssl_undefined_function,
- .ssl_shutdown = ssl3_shutdown,
- .ssl_pending = ssl3_pending,
.get_ssl_method = tls1_get_server_method,
.get_timeout = tls1_default_timeout,
.ssl_version = ssl_undefined_void_function,