summaryrefslogtreecommitdiff
path: root/cli_args.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli_args.go')
-rw-r--r--cli_args.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli_args.go b/cli_args.go
index 7175006..d666b47 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -253,7 +253,11 @@ func parseCliOpts(osArgs []string) (args argContainer) {
}
// "-openssl" needs some post-processing
if opensslAuto == "auto" {
- args.openssl = stupidgcm.PreferOpenSSLAES256GCM()
+ if args.xchacha {
+ args.openssl = stupidgcm.PreferOpenSSLXchacha20poly1305()
+ } else {
+ args.openssl = stupidgcm.PreferOpenSSLAES256GCM()
+ }
} else {
args.openssl, err = strconv.ParseBool(opensslAuto)
if err != nil {