Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. if (s->s3->tmp.use_rsa_tmp
  2. /* PSK: send ServerKeyExchange if PSK identity
  3. * hint if provided */
  4. #ifndef OPENSSL_NO_PSK
  5. || ((alg_k & SSL_kPSK) && s->ctx->psk_identity_hint)
  6. #endif
  7. #ifndef OPENSSL_NO_SRP
  8. /* SRP: send ServerKeyExchange */
  9. || (alg_k & SSL_kSRP)
  10. #endif
  11. || (alg_k & (SSL_kDHr|SSL_kDHd|SSL_kEDH))
  12. || (alg_k & SSL_kEECDH)
  13. || ((alg_k & SSL_kRSA)
  14. && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL
  15. || (SSL_C_IS_EXPORT(s->s3->tmp.new_cipher)
  16. && EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey)*8 > SSL_C_EXPORT_PKEYLENGTH(s->s3->tmp.new_cipher)
  17. )
  18. )
  19. )
  20. )
  21. {
  22. ret=ssl3_send_server_key_exchange(s);
  23. if (ret <= 0) goto end;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement