Commit 924bc517 authored by Dorchies David's avatar Dorchies David
Browse files

Merge branch '6-change-openssl_conf-configuration-only-temporally' into 'master'

Resolve "Change OPENSSL_CONF configuration only temporally"

Closes #6

See merge request !4
1 merge request!4Resolve "Change OPENSSL_CONF configuration only temporally"
Showing with 4 additions and 2 deletions
+4 -2
......@@ -13,8 +13,10 @@
#' login("pnom", "myPassword")
#' }
login <- function(username,
password,
cfg = config::get(file = system.file("config.yml", package = "hatata"))) {
password,
cfg = config::get(file = system.file("config.yml", package = "hatata"))) {
openssl_conf = Sys.getenv("OPENSSL_CONF")
on.exit(Sys.setenv(OPENSSL_CONF = openssl_conf))
Sys.setenv(OPENSSL_CONF = system.file("openssl.cnf", package = "hatata"))
Sys.setlocale('LC_ALL','C')
rs <- rvest::session(cfg$url_temps_activites)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment