Skip to content

Commit a4910a0

Browse files
rename
Signed-off-by: Marino Faggiana <marino.faggiana@nextcloud.com>
1 parent eb0ed06 commit a4910a0

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Sources/NextcloudKit/NextcloudKit+E2EE.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ public extension NextcloudKit {
802802
}
803803
}
804804

805-
/// Deletes the currently stored E2EE public certificate from the Nextcloud server.
805+
/// Deletes the currently stored E2EE public key from the Nextcloud server.
806806
/// This is typically used during key revocation or reinitialization of E2EE.
807807
/// The request targets the `public-key` endpoint with the HTTP DELETE method.
808808
///
@@ -811,10 +811,10 @@ public extension NextcloudKit {
811811
/// - options: request configuration, including the optional E2EE API version specified by `options.version` v1/v2.
812812
/// - taskHandler: Closure to access the URLSessionTask.
813813
/// - completion: Completion handler returning the account, raw response, and NKError.
814-
func deleteE2EECertificate(account: String,
815-
options: NKRequestOptions = NKRequestOptions(),
816-
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in },
817-
completion: @escaping (_ account: String, _ responseData: AFDataResponse<Data>?, _ error: NKError) -> Void) {
814+
func deleteE2EEPublicKey(account: String,
815+
options: NKRequestOptions = NKRequestOptions(),
816+
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in },
817+
completion: @escaping (_ account: String, _ responseData: AFDataResponse<Data>?, _ error: NKError) -> Void) {
818818
var version = "v2"
819819
if let optionsVesion = options.version {
820820
version = optionsVesion
@@ -839,22 +839,22 @@ public extension NextcloudKit {
839839
}
840840
}
841841

842-
/// Asynchronously deletes the E2EE public certificate from the server for the given account.
842+
/// Asynchronously deletes the E2EE public key from the server for the given account.
843843
/// - Parameters:
844844
/// - account: The Nextcloud account to remove the certificate from.
845845
/// - options: request configuration, including the optional E2EE API version specified by `options.version` v1/v2.
846846
/// - taskHandler: Optional monitoring of the URLSessionTask.
847847
/// - Returns: A tuple containing the account, response data, and error.
848-
func deleteE2EECertificateAsync(account: String,
849-
options: NKRequestOptions = NKRequestOptions(),
850-
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in }
848+
func deleteE2EEPublicKeyAsync(account: String,
849+
options: NKRequestOptions = NKRequestOptions(),
850+
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in }
851851
) async -> (
852852
account: String,
853853
responseData: AFDataResponse<Data>?,
854854
error: NKError
855855
) {
856856
await withCheckedContinuation { continuation in
857-
deleteE2EECertificate(account: account,
857+
deleteE2EEPublicKey(account: account,
858858
options: options,
859859
taskHandler: taskHandler) { account, responseData, error in
860860
continuation.resume(returning: (

0 commit comments

Comments
 (0)