Skip to content
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

Add signature.untrustedCosignPayload, with JSON marshaling #1596

Merged
merged 4 commits into from Jul 7, 2022

Commits on Jul 6, 2022

  1. Rename signature/signature.go to signature/simple.go

    To make its relationship with "simple signing" clearer.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Jul 6, 2022
    Copy the full SHA
    e1f9e44 View commit details
    Browse the repository at this point in the history
  2. Move InvalidSignatureError to signature/internal

    ... so that future code in singature/internal can use it.
    
    This also requires requires a package-public (but internal)
    constructor.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Jul 6, 2022
    Copy the full SHA
    e98b492 View commit details
    Browse the repository at this point in the history
  3. Move signature/json.go to signature/internal/json.go

    We are going to need it in signature/internal .
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Jul 6, 2022
    Copy the full SHA
    103fb71 View commit details
    Browse the repository at this point in the history
  4. Add signature.untrustedCosignPayload, with JSON marshaling

    The code and tests are basically copy&pasted from simple signing.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Jul 6, 2022
    Copy the full SHA
    ceacd85 View commit details
    Browse the repository at this point in the history