-
- Downloads
res_stir_shaken: Implemented signing of JSON payload.
This change provides functions that take in a JSON payload, verify that the contents contain all the mandatory fields and required values (if any), and signs the payload with the private key. Four fields are added to the payload: x5u, attest, iat, and origid. As of now, these are just placeholder values that will be set to actual values once the logic is implemented for what to do when an actual payload is received, but the functions to add these values have all been implemented and are ready to use. Upon successful signing and the addition of those four values, a ast_stir_shaken_payload is returned, containing other useful information such as the algorithm and signature. Change-Id: I74fa41c0640ab2a64a1a80110155bd7062f13393
Showing
- include/asterisk/res_stir_shaken.h 12 additions, 5 deletionsinclude/asterisk/res_stir_shaken.h
- res/res_stir_shaken.c 374 additions, 2 deletionsres/res_stir_shaken.c
- res/res_stir_shaken/certificate.c 17 additions, 6 deletionsres/res_stir_shaken/certificate.c
- res/res_stir_shaken/certificate.h 17 additions, 3 deletionsres/res_stir_shaken/certificate.h
Loading
Please register or sign in to comment