static void crack(const struct crack_args *a) { struct cracker ck; ck_init(&ck, a->str); if (a->klen != 0) ck_set_length(&ck, a->klen); if (a->ka_minlen != 0) ck.ka_minlen = a->ka_minlen; ck_crack(&ck); if (a->ka_show_table) crack_ka_show_table(&ck); if (a->ka_show_length) crack_ka_show_length(&ck); printf("Found key: %s\n", ck.key); vig_decrypt(a->str, ck.key); ck_fini(&ck); }
static void nm_session_monitor_init (NMSessionMonitor *monitor) { #ifdef SESSION_TRACKING_SYSTEMD sd_init (monitor); #endif #ifdef SESSION_TRACKING_CONSOLEKIT ck_init (monitor); #endif }