File: init.R

package info (click to toggle)
r-cran-openssl 2.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,336 kB
  • sloc: ansic: 3,158; sh: 20; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
libssl_version_number <- NULL
.onLoad <- function(libname, pkg) {
  try({
    ver <- openssl_config()$version
    m <- regexec('[0-9]+\\.[0-9]+\\.[0-9]+', ver)
    libssl_version_number <<- numeric_version(regmatches(ver, m)[[1]])
  })
}

.onAttach <- function(libname, pkg){
  conf <- openssl_config()
  version <- conf$version
  if(isTRUE(conf$fips))
    version <- paste(version, "(FIPS)")
  packageStartupMessage(paste("Linking to:", version))
}