mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 15:53:28 +03:00
Add support for SSE-S3 server side encryption with vault (#6192)
Add support for sse-s3 encryption with vault as KMS. Also refactoring code to make use of headers and functions defined in crypto package and clean up duplicated code.
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package testhelper
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Converts the line endings when on Windows
|
||||
func Unix2dos(unix string) string {
|
||||
if runtime.GOOS != "windows" {
|
||||
return unix
|
||||
}
|
||||
|
||||
return strings.Replace(unix, "\n", "\r\n", -1)
|
||||
}
|
||||
Reference in New Issue
Block a user