mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Support SSE-C multipart source objects in CopyObject (#5603)
Current code didn't implement the logic to support decrypting encrypted multiple parts, this PR fixes by supporting copying encrypted multipart objects.
This commit is contained in:
@@ -114,3 +114,15 @@ func (w *LimitWriter) Close() error {
|
||||
func LimitedWriter(w io.Writer, skipBytes int64, limit int64) *LimitWriter {
|
||||
return &LimitWriter{w, skipBytes, limit}
|
||||
}
|
||||
|
||||
type nopCloser struct {
|
||||
io.Writer
|
||||
}
|
||||
|
||||
func (nopCloser) Close() error { return nil }
|
||||
|
||||
// NopCloser returns a WriteCloser with a no-op Close method wrapping
|
||||
// the provided Writer w.
|
||||
func NopCloser(w io.Writer) io.WriteCloser {
|
||||
return nopCloser{w}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user