search for: pubkey_ignore_re

Displaying 5 results from an estimated 5 matches for "pubkey_ignore_re".

2014 Nov 02
3
[PATCH] customize: Add --ssh-inject option for injecting SSH keys.
...r (f_"sorry, don't know how to use --update with the '%s' package manager") pm in + (* Find the local [on the host] user's SSH public key. See + * ssh-copy-id(1) default_ID_file for rationale. + *) + let pubkey_re = Str.regexp "^id.*\\.pub$" in + let pubkey_ignore_re = Str.regexp ".*-cert\\.pub$" in + + let local_user_ssh_pubkey () = + let home_dir = + try getenv "HOME" + with Not_found -> + error (f_"ssh-inject: $HOME environment variable is not set") in + let ssh_dir = home_dir // ".ssh" in +...
2017 Sep 20
4
[PATCH 0/4] Replace some uses of the Str module with PCRE.
Str is a pretty ugly regexp module. Let's try to replace it with PCRE. This series of commits goes some small way towards that eventual goal. - - - I wonder if there was a deep reason why we had this? let unix2dos s = String.concat "\r\n" (Str.split_delim (Str.regexp_string "\n") s) I replaced it with what I think should be (nearly) equivalent: let unix2dos s =
2014 Nov 03
0
[PATCH] customize: Add --ssh-inject option for injecting SSH keys.
...KeyString s + | _ -> + error (f_"invalid ssh-inject selector '%s'; see the man page") orig_arg + +(* Find the local [on the host] user's SSH public key. See + * ssh-copy-id(1) default_ID_file for rationale. + *) +let pubkey_re = Str.regexp "^id.*\\.pub$" +let pubkey_ignore_re = Str.regexp ".*-cert\\.pub$" + +let local_user_ssh_pubkey () = + let home_dir = + try getenv "HOME" + with Not_found -> + error (f_"ssh-inject: $HOME environment variable is not set") in + let ssh_dir = home_dir // ".ssh" in + let files = Sy...
2017 Sep 21
18
[PATCH v2 00/18] Replace many more uses of the Str module with PCRE.
v1 was here: https://www.redhat.com/archives/libguestfs/2017-September/msg00135.html This is a more complete evolution of the earlier patch. It replaces most important uses of Str with PCRE throughout the code. It also extends the bindings with some useful features like case-insensitive regexps. The main places I *didn't* touch are the generator (GObject uses Str extensively); and
2017 Sep 22
27
[PATCH v3 00/22] Replace almost all uses of the Str module with PCRE.
v1: https://www.redhat.com/archives/libguestfs/2017-September/msg00135.html v2: https://www.redhat.com/archives/libguestfs/2017-September/msg00158.html v3 is almost identical to v2, but I have added 4 extra commits to almost finish the job of replacing Str everywhere possible (note it's not possible to replace Str in common/mlstdutils or the generator because those are pure OCaml). As