Skip to content

Commit 5c043ba

Browse files
committed
Merge pull request #123 from ropensci/pd-ssl-to-tls
R API: Change SSLv3 to TLSv1
2 parents 9da6de9 + dc5b06c commit 5c043ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/plotly.R

+5-2
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,14 @@ For more help, see https://plot.ly/R or contact <[email protected]>.")
9696
args=toJSON(args, digits=50, collapse=""), un=pub$username,
9797
key=pub$key, origin=origin,
9898
kwargs=toJSON(kwargs, digits=50, collapse=""),
99-
.opts=list(sslversion=3, cainfo=system.file("CurlSSL", "cacert.pem", package="RCurl")))
99+
.opts=list(sslversion=1, # 1 is for TLSv1
100+
cainfo=system.file("CurlSSL",
101+
"cacert.pem",
102+
package="RCurl")))
100103
if (is.raw(respst)) {
101104
respst <- rawToChar(respst)
102105
}
103-
106+
104107
resp <- fromJSON(respst, simplify = FALSE)
105108
if (!is.null(resp$filename))
106109
pub$filename <- resp$filename

0 commit comments

Comments
 (0)