/* * Return the appropriate format list. If client_formats is non-zero, return * the client/session formats. Otherwise return the custom format list if one * exists, or the default formats if a custom list has not been specified. */ void tls1_get_formatlist(SSL *s, int client_formats, const uint8_t **pformats, size_t *pformatslen) { if (client_formats != 0) { *pformats = SSI(s)->tlsext_ecpointformatlist; *pformatslen = SSI(s)->tlsext_ecpointformatlist_length; return; } *pformats = s->internal->tlsext_ecpointformatlist; *pformatslen = s->internal->tlsext_ecpointformatlist_length; if (*pformats == NULL) { *pformats = ecformats_default; *pformatslen = sizeof(ecformats_default); } }
/* * Return the appropriate curve list. If client_curves is non-zero, return * the client/session curves. Otherwise return the custom curve list if one * exists, or the default curves if a custom list has not been specified. */ void tls1_get_curvelist(SSL *s, int client_curves, const uint16_t **pcurves, size_t *pcurveslen) { if (client_curves != 0) { *pcurves = SSI(s)->tlsext_supportedgroups; *pcurveslen = SSI(s)->tlsext_supportedgroups_length; return; } *pcurves = s->internal->tlsext_supportedgroups; *pcurveslen = s->internal->tlsext_supportedgroups_length; if (*pcurves == NULL) { *pcurves = eccurves_default; *pcurveslen = sizeof(eccurves_default) / 2; } }
static void Redrawsy(X6502 *X) { SSI(X); RFlags(X); RRegs(X); Disyou(X->PC); DoVecties(dwin); }