Skip to content

Commit

Permalink
set configuration/error enums to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 7, 2020
1 parent d15948f commit 15d7cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/SRP/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Crypto
///
public struct SRPClient<H: HashFunction> {
/// Errors thrown by SRPClient
enum Error: Swift.Error {
public enum Error: Swift.Error {
/// the key returned by server is invalid, in that either it modulo N is zero or the hash(A,B) is zero
case nullServerKey
/// server verification code was wrong
Expand All @@ -28,7 +28,7 @@ public struct SRPClient<H: HashFunction> {
}

/// configuration. This needs to be the same as the server configuration
let configuration: SRPConfiguration<H>
public let configuration: SRPConfiguration<H>

/// Initialise a SRPClient object
/// - Parameter configuration: configuration to use
Expand Down
2 changes: 1 addition & 1 deletion Sources/SRP/server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Crypto
///
public struct SRPServer<H: HashFunction> {
///Errors thrown by SRPServer
enum Error: Swift.Error {
public enum Error: Swift.Error {
/// the modulus of the client key and N generated a zero
case nullClientKey
/// client proof of the shared secret was invalid or wrong
Expand Down

0 comments on commit 15d7cfc

Please sign in to comment.