Files
vault/vault/logical_system_plugins_stubs_oss.go
Thy Ton 4f14f7bfec plugin register with artifact stubs VAULT-32686 (#29113)
* add plugin catalog's entValidate() and setInternal() oss stubs 
* create plugin register command constructor oss stub
* create EntPluginRunner oss stub
* add validateSHA256() oss stub to validate plugin catalog update input
2025-01-09 08:20:09 -08:00

18 lines
311 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build !enterprise
package vault
import (
"github.com/hashicorp/vault/sdk/logical"
)
func validateSHA256(sha256 string) *logical.Response {
if sha256 == "" {
return logical.ErrorResponse("missing SHA-256 value")
}
return nil
}