Using std::regex for pkinit on Windows

Ken Hornstein kenh at cmf.nrl.navy.mil
Sat Nov 23 13:38:49 EST 2024


>On 11/22/24 21:30, Ken Hornstein via krbdev wrote:> What comes to mind, 
>though, is should this code be specific to PKINIT
>> or to the rest of the krb5 libraries in general?
>
>I would ideally put it in libkrb5support (util/support) and use it to 
>enable localauth_rule.c on Windows, in addition to PKINIT.  I don't 
>think there should be a dependency issue; as far as I can tell this 
>should be in the same UCRT library we rely on for C stuff on Windows.

In terms of mechanics, are you thinking of having every caller make
calls into krb5int_regcomp() (and associated functions) and put the
compatibility glue in libkrb5support?

There is some support for older regular expression libraries that use
the functions compile() and re_comp().  I don't know if I can test that
because I am not sure that I have access to systems that use those
functions anymore; is that compatibility still useful?  Does it make
sense going forward to assume all platforms will have a regular expression
library available?

--Ken


More information about the krbdev mailing list