Skip to content

Commit 15d7cfc

Browse files
committed
set configuration/error enums to be public
1 parent d15948f commit 15d7cfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SRP/client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Crypto
1616
///
1717
public struct SRPClient<H: HashFunction> {
1818
/// Errors thrown by SRPClient
19-
enum Error: Swift.Error {
19+
public enum Error: Swift.Error {
2020
/// the key returned by server is invalid, in that either it modulo N is zero or the hash(A,B) is zero
2121
case nullServerKey
2222
/// server verification code was wrong
@@ -28,7 +28,7 @@ public struct SRPClient<H: HashFunction> {
2828
}
2929

3030
/// configuration. This needs to be the same as the server configuration
31-
let configuration: SRPConfiguration<H>
31+
public let configuration: SRPConfiguration<H>
3232

3333
/// Initialise a SRPClient object
3434
/// - Parameter configuration: configuration to use

Sources/SRP/server.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Crypto
1616
///
1717
public struct SRPServer<H: HashFunction> {
1818
///Errors thrown by SRPServer
19-
enum Error: Swift.Error {
19+
public enum Error: Swift.Error {
2020
/// the modulus of the client key and N generated a zero
2121
case nullClientKey
2222
/// client proof of the shared secret was invalid or wrong

0 commit comments

Comments
 (0)