|
|
|
|
@ -907,7 +907,10 @@ void on_key_generate_accept(GtkWidget *self, key_creation_window* window){
|
|
|
|
|
}
|
|
|
|
|
char *expire = NULL;
|
|
|
|
|
if (gtk_combo_box_get_active(GTK_COMBO_BOX(window->ExpireCombo))==1){
|
|
|
|
|
expire = yon_char_from_int(yon_calendar_get_last_date());
|
|
|
|
|
GDateTime *datetime = g_date_time_new_from_unix_local(yon_calendar_get_last_date());
|
|
|
|
|
expire = g_date_time_format(datetime,"%Y%m%dT000000");
|
|
|
|
|
g_date_time_unref(datetime);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
const char *password = gtk_entry_get_text(GTK_ENTRY(window->PasswordEntry));
|
|
|
|
|
const char *password_confirm = gtk_entry_get_text(GTK_ENTRY(window->PasswordConfirmationEntry));
|
|
|
|
|
|