libwebsockets
Lightweight C library for HTML5 websockets
lws-jwk.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_jwk
 
struct  lws_jwk_parse_state
 

Macros

#define LWSJWKF_EXPORT_PRIVATE   (1 << 0)
 
#define LWSJWKF_EXPORT_NOCRLF   (1 << 1)
 

Typedefs

typedef int(* lws_jwk_key_import_callback) (struct lws_jwk *s, void *user)
 

Enumerations

enum  enum_jwk_meta_tok {
  JWK_META_KTY , JWK_META_KID , JWK_META_USE , JWK_META_KEY_OPS ,
  JWK_META_X5C , JWK_META_ALG , LWS_COUNT_JWK_ELEMENTS
}
 

Functions

LWS_VISIBLE LWS_EXTERN int lws_jwk_import (struct lws_jwk *jwk, lws_jwk_key_import_callback cb, void *user, const char *in, size_t len)
 
LWS_VISIBLE LWS_EXTERN void lws_jwk_destroy (struct lws_jwk *jwk)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_dup_oct (struct lws_jwk *jwk, const void *key, int len)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_export (struct lws_jwk *jwk, int flags, char *p, int *len)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_load (struct lws_jwk *jwk, const char *filename, lws_jwk_key_import_callback cb, void *user)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_save (struct lws_jwk *jwk, const char *filename)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_rfc7638_fingerprint (struct lws_jwk *jwk, char *digest32)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_strdup_meta (struct lws_jwk *jwk, enum enum_jwk_meta_tok idx, const char *in, int len)
 
LWS_VISIBLE LWS_EXTERN int lws_jwk_dump (struct lws_jwk *jwk)
 
LWS_VISIBLE int lws_jwk_generate (struct lws_context *context, struct lws_jwk *jwk, enum lws_gencrypto_kty kty, int bits, const char *curve)