void tls_modify_variables(tls_support * dest_tsp) { modify_variable(US"tls_bits", &dest_tsp->bits); modify_variable(US"tls_certificate_verified", &dest_tsp->certificate_verified); modify_variable(US"tls_cipher", &dest_tsp->cipher); modify_variable(US"tls_peerdn", &dest_tsp->peerdn); #if defined(SUPPORT_TLS) && !defined(USE_GNUTLS) modify_variable(US"tls_sni", &dest_tsp->sni); #endif }
void main() { char c; int gata = 0; double xx1[DIM], xx2[DIM], yy1[DIM], yy2[DIM]; initialize_graphic_mode(); initialize_variable_spaces(); create_figure(); draw_figure(); draw_axes(); draw_line(); do { c = getch(); for (int i = 0; i < DIM; i++) { xx1[i] = x1[i]; xx2[i] = x2[i]; yy1[i] = y1[i]; yy2[i] = y2[i]; } switch (c) { case 9: idx++; if (idx == 9) idx = 1; variable_space(1); break; case '+': modify_variable(1); break; case '-': modify_variable(0); break; case 't': draw_figure(); translate(transX, transY); draw_figure(); break; case 's': draw_figure(); scale(scaleX, scaleY); draw_figure(); break; case 'c': draw_figure(); center_rotate(rotA); draw_figure(); break; case 'r': draw_figure(); origin_rotate(rotA); draw_figure(); break; case 'x': draw_figure(); Ox_simetry(); draw_figure(); break; case 'y': draw_figure(); Oy_simetry(); draw_figure(); break; case 'o': draw_figure(); origin_simetry(); draw_figure(); break; case 'd': draw_figure(); random_line_simetry(simX, simY, simA); draw_figure(); break; case 27: gata = 1; break; case 0: c = getch(); switch (c) { case 15: idx--; if (idx == 0) idx = 8; variable_space(0); break; case 80: draw_axes(); if (y < 427) y++; draw_axes(); break; case 72: draw_axes(); if (y > 0) y--; draw_axes(); break; case 77: draw_axes(); if (x < 638) x++; draw_axes(); break; case 75: draw_axes(); if (x > 0) x--; draw_axes(); break; } } if (not_on_the_screen()) { draw_figure(); for (int i = 0; i < DIM; i++) { x1[i] = xx1[i]; x2[i] = xx2[i]; y1[i] = yy1[i]; y2[i] = yy2[i]; } draw_figure(); } } while (!gata); closegraph(); }