mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
* 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
18 lines
311 B
Go
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
|
|
}
|