Skip to content

Bug: audit functions missing public visibility #566

@cameronvoell

Description

@cameronvoell

Describe the bug

The following functions have incorrect visibility:

/// Encrypt arbitrary bytes (already encoded with some codec, e.g. AttachmentCodec)
/// so that they can be uploaded to remote storage.
static func encryptBytesForLocalAttachment(_ bytesToEncrypt: Data, filename: String) throws -> EncryptedEncodedContent {
return try RemoteAttachment.encodeEncryptedBytes(encodedContent: bytesToEncrypt, filename: filename)
}
/// Builds a `RemoteAttachmentInfo` from an `EncryptedEncodedContent` plus a remote HTTPS URL.
static func buildRemoteAttachmentInfo(
encryptedAttachment: EncryptedEncodedContent,
remoteUrl: URL
) throws -> MultiRemoteAttachment.RemoteAttachmentInfo {
return try MultiRemoteAttachment.RemoteAttachmentInfo.from(url: remoteUrl, encryptedEncodedContent: encryptedAttachment)
}

Expected behavior

No response

Steps to reproduce the bug

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions