Skip to content

Commit

Permalink
Patch from PR openssl#1833 was broken: there's no s->s3->new_session
Browse files Browse the repository at this point in the history
(only s->new_session).
  • Loading branch information
45264 committed Aug 26, 2010
1 parent 76af94e commit f16176d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ssl/s3_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,6 @@ void ssl3_clear(SSL *s)

s->packet_length=0;
s->s3->renegotiate=0;
s->s3->new_session=0;
s->s3->total_renegotiations=0;
s->s3->num_renegotiations=0;
s->s3->in_read_app_data=0;
Expand Down Expand Up @@ -2545,6 +2544,11 @@ long ssl3_callback_ctrl(SSL *s, int cmd, void (*fp)(void))
unsigned char *, int, void *))fp;
break;
#endif
case SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB:
{
s->not_resumable_session_cb = (int (*)(SSL *, int))fp;
}
break;
default:
break;
}
Expand Down Expand Up @@ -2789,6 +2793,11 @@ long ssl3_ctx_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)(void))
break;

#endif
case SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB:
{
ctx->not_resumable_session_cb = (int (*)(SSL *, int))fp;
}
break;
default:
return(0);
}
Expand Down Expand Up @@ -3336,4 +3345,3 @@ need to go to SSL_ST_ACCEPT.
}
return(ret);
}

0 comments on commit f16176d

Please sign in to comment.