diff options
| author | Parménides GV <parmegv@sdf.org> | 2014-12-15 16:22:58 +0100 | 
|---|---|---|
| committer | Parménides GV <parmegv@sdf.org> | 2014-12-15 16:22:58 +0100 | 
| commit | 18fef7c99aa36b3e5622b3865f36d78d0879e92d (patch) | |
| tree | 7a04fc87318d5008bbc1f1ac145ebb505bb5238c /app/openssl/ssl/d1_lib.c | |
| parent | 56fe0400b8983ce57112ed5a0f993985a87741c0 (diff) | |
| parent | 33c5958a18599267820f73b151d8161d83f93d88 (diff) | |
Merge branch 'research/Test-on-Android-5-#6543' into develop
Diffstat (limited to 'app/openssl/ssl/d1_lib.c')
| -rw-r--r-- | app/openssl/ssl/d1_lib.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/app/openssl/ssl/d1_lib.c b/app/openssl/ssl/d1_lib.c index 6bde16fa..82ca6539 100644 --- a/app/openssl/ssl/d1_lib.c +++ b/app/openssl/ssl/d1_lib.c @@ -266,6 +266,16 @@ long dtls1_ctrl(SSL *s, int cmd, long larg, void *parg)  	case DTLS_CTRL_LISTEN:  		ret = dtls1_listen(s, parg);  		break; +	case SSL_CTRL_CHECK_PROTO_VERSION: +		/* For library-internal use; checks that the current protocol +		 * is the highest enabled version (according to s->ctx->method, +		 * as version negotiation may have changed s->method). */ +#if DTLS_MAX_VERSION != DTLS1_VERSION +#  error Code needs update for DTLS_method() support beyond DTLS1_VERSION. +#endif +		/* Just one protocol version is supported so far; +		 * fail closed if the version is not as expected. */ +		return s->version == DTLS_MAX_VERSION;  	default:  		ret = ssl3_ctrl(s, cmd, larg, parg);  | 
