-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-7880] add error code to empty cert
clients can now verify the empty cert error code from the sdk. This is used when calling TLSCACerts.TLSCert() on the orderer or the peer's config. to check if an empty cert is returned cast it to a status object and verify its code. Example: ocert, err := ordererConfig.TLSCACerts.TLSCert() s, ok := status.FromError(err) if ok && s.code == status.EmptyCert.ToInt32() { // then we have an empty cert error } Change-Id: Ibe4e68c478bd95d2930a8001b68ef81352dc3b45 Signed-off-by: Baha Shaaban <[email protected]>
- Loading branch information
Baha Shaaban
committed
Jan 24, 2018
1 parent
3a0dae2
commit ef80627
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters