Skip to content

Commit

Permalink
src: use named enum instead of typedef
Browse files Browse the repository at this point in the history
PR-URL: #43880
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
tniessen authored and targos committed Jul 31, 2022
1 parent 80d562b commit eaa611c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/crypto_sig.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum DSASigEnc {

class SignBase : public BaseObject {
public:
typedef enum {
enum Error {
kSignOk,
kSignUnknownDigest,
kSignInit,
Expand All @@ -29,7 +29,7 @@ class SignBase : public BaseObject {
kSignPrivateKey,
kSignPublicKey,
kSignMalformedSignature
} Error;
};

SignBase(Environment* env, v8::Local<v8::Object> wrap);

Expand Down

0 comments on commit eaa611c

Please sign in to comment.