|
|
|
|
@ -47,9 +47,17 @@ void on_key_generate_accept(GtkWidget *self, key_creation_window* window){
|
|
|
|
|
const char *password_confirm = gtk_entry_get_text(GTK_ENTRY(window->PasswordConfirmationEntry));
|
|
|
|
|
int ex_status=0;
|
|
|
|
|
if (yon_char_is_empty(password)&&yon_char_is_empty(password_confirm)){
|
|
|
|
|
|
|
|
|
|
yon_debug_output("%s\n",yon_generate_key_no_password_command(type,name,email,strength,comment,expire,password));
|
|
|
|
|
ex_status = system(yon_debug_output("%s\n",yon_generate_key_no_password_command(type,name,email,strength,comment,expire,password)));
|
|
|
|
|
} else if (!strcmp(password,password_confirm)){
|
|
|
|
|
for (int i=0;i<strlen(password);i++){
|
|
|
|
|
if (!g_ascii_isgraph(password[i])){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),PASSWORD_INVALID_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(window->PasswordEntry);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
yon_debug_output("%s\n",yon_generate_key_command(type,name,email,strength,comment,expire,password));
|
|
|
|
|
ex_status = system(yon_debug_output("%s\n",yon_generate_key_command(type,name,email,strength,comment,expire,password)));
|
|
|
|
|
} else {
|
|
|
|
|
|