MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / cert_field_next

Function cert_field_next

core/cert.c:74–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74int cert_field_next(const uint8_t **data, uint32_t *length) {
75 int ret;
76 const uint8_t * contents;
77 uint32_t field_size;
78
79 /* sanity checks. */
80 if (data == NULL) {
81 return 1;
82 }
83 if (length == NULL) {
84 return 1;
85 }
86
87 ret = cert_field_get(*data, *length, NULL, &contents, &field_size);
88 if (!ret) {
89 *length -= contents + field_size - *data;
90 *data = contents + field_size;
91 }
92
93 return ret;
94}
95
96int cert_field_find(const uint8_t *data, uint32_t length, uint16_t field_type, const uint8_t **contents, uint32_t *field_size) {
97 int ret = 0;

Callers 2

emu_loadFunction · 0.85
cert_field_findFunction · 0.85

Calls 1

cert_field_getFunction · 0.85

Tested by

no test coverage detected