Hi,developers:
When i use the ssl3_accept(SSL* S), there is a problem I don't konw why.
here is the code:
case SSL3_ST_SW_CERT_A:
case SSL3_ST_SW_CERT_B:
/* Check if it is anon DH or anon ECDH */
if (!(s->s3->tmp.new_cipher->algorithms & SSL_aNULL))
{
ret=ssl3_send_server_certificate(s);
if (ret <= 0) goto end;
}
else
skip=1;
s->state=SSL3_ST_SW_KEY_EXCH_A;
s->init_num=0;
break;
case SSL3_ST_SW_KEY_EXCH_A:
case SSL3_ST_SW_KEY_EXCH_B:
l=s->s3->tmp.new_cipher->algorithms;
the vc compiler must tell me that there is a access violation at the bold
code. I found that the value of the s->s3->tmp.new_cipher is NULL.I found many
functions ,but i didn't find out which function querys the memory for the
struct CIPHER_ST,and which function gives the value of s->s3->tmp.new_cipher.
So, i write to you ,and ask for your help.
Thank you first.
Hi,developers:
When i use the ssl3_accept(SSL* S), there is a problem I don't konw why.
here is the code:
case SSL3_ST_SW_CERT_A:
case SSL3_ST_SW_CERT_B:
/* Check if it is anon DH or anon ECDH */
if (!(s->s3->tmp.new_cipher->algorithms & SSL_aNULL))
{
ret=ssl3_send_server_certificate(s);
if (ret <= 0) goto end;
}
else
skip=1;
s->state=SSL3_ST_SW_KEY_EXCH_A;
s->init_num=0;
break;
case SSL3_ST_SW_CERT_B:
/* Check if it is anon DH or anon ECDH */
if (!(s->s3->tmp.new_cipher->algorithms & SSL_aNULL))
{
ret=ssl3_send_server_certificate(s);
if (ret <= 0) goto end;
}
else
skip=1;
s->state=SSL3_ST_SW_KEY_EXCH_A;
s->init_num=0;
break;
case SSL3_ST_SW_KEY_EXCH_A:
case SSL3_ST_SW_KEY_EXCH_B:
l=s->s3->tmp.new_cipher->algorithms;
the vc compiler must tell me that there is a access violation at the bold code. I found that the value of the s->s3->tmp.new_cipher is NULL.I found many functions ,but i didn't find out which function querys the memory for the struct CIPHER_ST,and which function gives the value of s->s3->tmp.new_cipher.
case SSL3_ST_SW_KEY_EXCH_B:
l=s->s3->tmp.new_cipher->algorithms;
the vc compiler must tell me that there is a access violation at the bold code. I found that the value of the s->s3->tmp.new_cipher is NULL.I found many functions ,but i didn't find out which function querys the memory for the struct CIPHER_ST,and which function gives the value of s->s3->tmp.new_cipher.
So, i write to you ,and ask for your help.
Thank you first.
网易邮箱,中国第一大电子邮件服务商
