From ba09f38c40ce2a3ef36a4be84e0d4c3f5fbd7e8f Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 16 Jul 2025 15:49:40 +0800 Subject: [PATCH] fix --- Sources/sdlan/AESCipher.swift | 2 +- Sources/sdlan/RSACipher.swift | 2 +- Sources/sdlan/SDLConfiguration.swift | 2 +- Sources/sdlan/SDLContext.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/sdlan/AESCipher.swift b/Sources/sdlan/AESCipher.swift index be4ca22..ae92578 100644 --- a/Sources/sdlan/AESCipher.swift +++ b/Sources/sdlan/AESCipher.swift @@ -6,7 +6,7 @@ // import Foundation -protocol AESCipher { +public protocol AESCipher { func decypt(aesKey: Data, data: Data) throws -> Data func encrypt(aesKey: Data, data: Data) throws -> Data diff --git a/Sources/sdlan/RSACipher.swift b/Sources/sdlan/RSACipher.swift index 0bf84b5..8bd4235 100644 --- a/Sources/sdlan/RSACipher.swift +++ b/Sources/sdlan/RSACipher.swift @@ -6,7 +6,7 @@ // import Foundation -protocol RSACipher { +public protocol RSACipher { var pubKey: String {get set} func decode(data: Data) throws -> Data diff --git a/Sources/sdlan/SDLConfiguration.swift b/Sources/sdlan/SDLConfiguration.swift index 7595ac3..3a9d9fd 100644 --- a/Sources/sdlan/SDLConfiguration.swift +++ b/Sources/sdlan/SDLConfiguration.swift @@ -8,7 +8,7 @@ import Foundation import NIOCore // 配置项目 -final class SDLConfiguration { +public class SDLConfiguration { struct StunServer { let host: String diff --git a/Sources/sdlan/SDLContext.swift b/Sources/sdlan/SDLContext.swift index d89dbe0..91994f5 100644 --- a/Sources/sdlan/SDLContext.swift +++ b/Sources/sdlan/SDLContext.swift @@ -15,7 +15,7 @@ import Combine 1. 处理rsa的加解密逻辑 */ -class SDLContext: @unchecked Sendable { +public class SDLContext: @unchecked Sendable { // 路由信息 struct Route {