Author: fschumacher
Date: Thu Aug 9 09:19:43 2018
New Revision: 1837704
URL: http://svn.apache.org/viewvc?rev=1837704&view=rev
Log:
Bug 62595 - SMTPSampler does not allow configuring the SSL/TLS protocols to be
used on handshake
Followup to r1837445. Missing the line to actually use the settings for sending
mails.
Contributed by Felipe Cuozzo
Bugzilla Id: 62595
Modified:
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
Modified:
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java?rev=1837704&r1=1837703&r2=1837704&view=diff
==============================================================================
---
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
(original)
+++
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
Thu Aug 9 09:19:43 2018
@@ -252,6 +252,7 @@ public class SmtpSampler extends Abstrac
sendMailCmd.setUseStartTLS(getPropertyAsBoolean(SecuritySettingsPanel.USE_STARTTLS));
sendMailCmd.setTrustAllCerts(getPropertyAsBoolean(SecuritySettingsPanel.SSL_TRUST_ALL_CERTS));
sendMailCmd.setEnforceStartTLS(getPropertyAsBoolean(SecuritySettingsPanel.ENFORCE_STARTTLS));
+
sendMailCmd.setTlsProtocolsToUse(getPropertyAsString(SecuritySettingsPanel.TLS_PROTOCOLS));
sendMailCmd.setUseAuthentication(getPropertyAsBoolean(USE_AUTH));
sendMailCmd.setUsername(getPropertyAsString(USERNAME));