Skip to content

Import X509 in PackageSigning #6228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if(FIND_PM_DEPS)
find_package(ArgumentParser CONFIG REQUIRED)
find_package(SwiftDriver CONFIG REQUIRED)
find_package(SwiftCollections CONFIG REQUIRED)
find_package(SwiftASN1 CONFIG REQUIRED)
find_package(SwiftCertificates CONFIG REQUIRED)
find_package(SwiftCrypto CONFIG REQUIRED)
endif()
Expand Down
3 changes: 2 additions & 1 deletion Sources/PackageSigning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ add_library(PackageSigning STATIC
target_link_libraries(PackageSigning PUBLIC
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>
Basics
# Crypto ## TODO: uncomment once we resolve build problems
Crypto
X509
PackageModel
TSCBasic
TSCUtility)
Expand Down
1 change: 1 addition & 0 deletions Sources/PackageSigning/SignatureProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import CryptoKit // TODO: remove when we can import Crypto

import Basics
//import Crypto
@_implementationOnly import X509

public enum SignatureProvider {
public static func sign(
Expand Down