mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
register crypto provider in main when program startsup (#745)
This commit is contained in:
parent
5373c6364f
commit
9cbf7fd7ab
@ -6,10 +6,12 @@ import joptsimple.OptionParser
|
||||
import joptsimple.OptionSpecBuilder
|
||||
import joptsimple.util.PathConverter
|
||||
import joptsimple.util.PathProperties
|
||||
import net.corda.core.crypto.Crypto
|
||||
import java.nio.file.Path
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Crypto.registerProviders() // Required to register Providers first thing on boot.
|
||||
val options = try {
|
||||
parseOptions(*args)
|
||||
} catch (e: ShowHelpException) {
|
||||
|
@ -25,7 +25,7 @@ import kotlin.system.exitProcess
|
||||
private val logger = LoggerFactory.getLogger("com.r3.corda.networkmanage.doorman")
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Crypto.findProvider(CordaSecurityProvider.PROVIDER_NAME) // Required to register Providers first thing on boot.
|
||||
Crypto.registerProviders() // Required to register Providers first thing on boot.
|
||||
if (Manifests.exists("Doorman-Version")) {
|
||||
println("Version: ${Manifests.read("Doorman-Version")}")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user