Files
Rick Newton-Rogers 3f776e9aaf Migrate CI to use GitHub Actions. (#234)
### Motivation:

To migrate to GitHub actions and centralised infrastructure.

### Modifications:

Changes of note:
* Adopt swift-format using rules from SwiftNIO
* Remove scripts and docker files which are no longer needed

### Result:

Feature parity with old CI.
2024-10-28 14:00:57 +00:00

40 lines
1.2 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2021 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import NIOCore
/// The SOCKS authentication method to use, defined in RFC 1928.
public struct AuthenticationMethod: Hashable, Sendable {
/// No authentication required
public static let noneRequired = AuthenticationMethod(value: 0x00)
/// Use GSSAPI
public static let gssapi = AuthenticationMethod(value: 0x01)
/// Username / password authentication
public static let usernamePassword = AuthenticationMethod(value: 0x02)
/// No acceptable authentication methods
public static let noneAcceptable = AuthenticationMethod(value: 0xFF)
/// The method identifier, valid values are in the range 0:255.
public var value: UInt8
public init(value: UInt8) {
self.value = value
}
}