Rhonabwy: Constants and properties

Rhonabwy Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE and JWT

Macros
Constants and properties

## Macros
#define | RHN_OK 0
#define | RHN_ERROR 1
#define | RHN_ERROR_MEMORY 2
#define | RHN_ERROR_PARAM 3
#define | RHN_ERROR_UNSUPPORTED 4
#define | RHN_ERROR_INVALID 5
#define | R_X509_TYPE_UNSPECIFIED 0
#define | R_X509_TYPE_PUBKEY 1
#define | R_X509_TYPE_PRIVKEY 2
#define | R_X509_TYPE_CERTIFICATE 3
#define | R_FORMAT_PEM 0
#define | R_FORMAT_DER 1
#define | R_KEY_TYPE_NONE 0x00000000
#define | R_KEY_TYPE_PUBLIC 0x00000001
#define | R_KEY_TYPE_PRIVATE 0x00000010
#define | R_KEY_TYPE_SYMMETRIC 0x00000100
#define | R_KEY_TYPE_RSA 0x00001000
#define | R_KEY_TYPE_EC 0x00010000
#define | R_KEY_TYPE_HMAC 0x00100000
#define | R_KEY_TYPE_EDDSA 0x01000000
#define | R_KEY_TYPE_ECDH 0x10000000
#define | R_FLAG_IGNORE_SERVER_CERTIFICATE 0x00000001
#define | R_FLAG_FOLLOW_REDIRECT 0x00000010
#define | R_FLAG_IGNORE_REMOTE 0x00000100
#define | R_JWT_TYPE_NONE 0
#define | R_JWT_TYPE_SIGN 1
#define | R_JWT_TYPE_ENCRYPT 2
#define | R_JWT_TYPE_NESTED_SIGN_THEN_ENCRYPT 3
#define | R_JWT_TYPE_NESTED_ENCRYPT_THEN_SIGN 4
#define | R_JWT_CLAIM_NOW -1
#define | R_JWT_CLAIM_PRESENT -2
#define | R_JWK_THUMB_SHA256 0
#define | R_JWK_THUMB_SHA384 1
#define | R_JWK_THUMB_SHA512 2
#define | R_JSON_MODE_COMPACT 0
#define | R_JSON_MODE_GENERAL 1
#define | R_JSON_MODE_FLATTENED 2
#define | R_PARSE_NONE 0
#define | R_PARSE_HEADER_JWK 1
#define | R_PARSE_HEADER_JKU 2
#define | R_PARSE_HEADER_X5C 4
#define | R_PARSE_HEADER_X5U 8
#define | R_PARSE_HEADER_ALL (R_PARSE_HEADER_JWK|R_PARSE_HEADER_JKU|R_PARSE_HEADER_X5C|R_PARSE_HEADER_X5U)
#define | R_PARSE_UNSIGNED 16
#define | R_PARSE_ALL (R_PARSE_HEADER_ALL|R_PARSE_UNSIGNED)

## Detailed Description

Constant values used as input or output

## Macro Definition Documentation

## ◆ RHN_OK

#define RHN_OK 0

## ◆ RHN_ERROR

#define RHN_ERROR 1

## ◆ RHN_ERROR_MEMORY

#define RHN_ERROR_MEMORY 2

## ◆ RHN_ERROR_PARAM

#define RHN_ERROR_PARAM 3

## ◆ RHN_ERROR_UNSUPPORTED

#define RHN_ERROR_UNSUPPORTED 4

## ◆ RHN_ERROR_INVALID

#define RHN_ERROR_INVALID 5

## ◆ R_X509_TYPE_UNSPECIFIED

#define R_X509_TYPE_UNSPECIFIED 0

## ◆ R_X509_TYPE_PUBKEY

#define R_X509_TYPE_PUBKEY 1

## ◆ R_X509_TYPE_PRIVKEY

#define R_X509_TYPE_PRIVKEY 2

## ◆ R_X509_TYPE_CERTIFICATE

#define R_X509_TYPE_CERTIFICATE 3

## ◆ R_FORMAT_PEM

#define R_FORMAT_PEM 0

## ◆ R_FORMAT_DER

#define R_FORMAT_DER 1

## ◆ R_KEY_TYPE_NONE

#define R_KEY_TYPE_NONE 0x00000000

## ◆ R_KEY_TYPE_PUBLIC

#define R_KEY_TYPE_PUBLIC 0x00000001

## ◆ R_KEY_TYPE_PRIVATE

#define R_KEY_TYPE_PRIVATE 0x00000010

## ◆ R_KEY_TYPE_SYMMETRIC

#define R_KEY_TYPE_SYMMETRIC 0x00000100

## ◆ R_KEY_TYPE_RSA

#define R_KEY_TYPE_RSA 0x00001000

## ◆ R_KEY_TYPE_EC

#define R_KEY_TYPE_EC 0x00010000

## ◆ R_KEY_TYPE_HMAC

#define R_KEY_TYPE_HMAC 0x00100000

## ◆ R_KEY_TYPE_EDDSA

#define R_KEY_TYPE_EDDSA 0x01000000

## ◆ R_KEY_TYPE_ECDH

#define R_KEY_TYPE_ECDH 0x10000000

## ◆ R_FLAG_IGNORE_SERVER_CERTIFICATE

#define R_FLAG_IGNORE_SERVER_CERTIFICATE 0x00000001

## ◆ R_FLAG_FOLLOW_REDIRECT

#define R_FLAG_FOLLOW_REDIRECT 0x00000010

## ◆ R_FLAG_IGNORE_REMOTE

#define R_FLAG_IGNORE_REMOTE 0x00000100

## ◆ R_JWT_TYPE_NONE

#define R_JWT_TYPE_NONE 0

## ◆ R_JWT_TYPE_SIGN

#define R_JWT_TYPE_SIGN 1

## ◆ R_JWT_TYPE_ENCRYPT

#define R_JWT_TYPE_ENCRYPT 2

## ◆ R_JWT_TYPE_NESTED_SIGN_THEN_ENCRYPT

#define R_JWT_TYPE_NESTED_SIGN_THEN_ENCRYPT 3

## ◆ R_JWT_TYPE_NESTED_ENCRYPT_THEN_SIGN

#define R_JWT_TYPE_NESTED_ENCRYPT_THEN_SIGN 4

## ◆ R_JWT_CLAIM_NOW

#define R_JWT_CLAIM_NOW -1

## ◆ R_JWT_CLAIM_PRESENT

#define R_JWT_CLAIM_PRESENT -2

## ◆ R_JWK_THUMB_SHA256

#define R_JWK_THUMB_SHA256 0

## ◆ R_JWK_THUMB_SHA384

#define R_JWK_THUMB_SHA384 1

## ◆ R_JWK_THUMB_SHA512

#define R_JWK_THUMB_SHA512 2

## ◆ R_JSON_MODE_COMPACT

#define R_JSON_MODE_COMPACT 0

## ◆ R_JSON_MODE_GENERAL

#define R_JSON_MODE_GENERAL 1

## ◆ R_JSON_MODE_FLATTENED

#define R_JSON_MODE_FLATTENED 2

## ◆ R_PARSE_NONE

#define R_PARSE_NONE 0

## ◆ R_PARSE_HEADER_JWK

#define R_PARSE_HEADER_JWK 1

## ◆ R_PARSE_HEADER_JKU

#define R_PARSE_HEADER_JKU 2

## ◆ R_PARSE_HEADER_X5C

#define R_PARSE_HEADER_X5C 4

## ◆ R_PARSE_HEADER_X5U

#define R_PARSE_HEADER_X5U 8

## ◆ R_PARSE_HEADER_ALL

#define R_PARSE_HEADER_ALL (R_PARSE_HEADER_JWK|R_PARSE_HEADER_JKU|R_PARSE_HEADER_X5C|R_PARSE_HEADER_X5U)

## ◆ R_PARSE_UNSIGNED

#define R_PARSE_UNSIGNED 16

## ◆ R_PARSE_ALL

#define R_PARSE_ALL (R_PARSE_HEADER_ALL|R_PARSE_UNSIGNED)