'Configure CURVE authentication for a given domain.
CURVE authentication uses a directory that holds all public client certificates,
i.e. their public keys.
To cover all domains, use "*".
You can add and remove certificates in that directory at any time.
To allow all client keys without checking, specify CURVE_ALLOW_ANY for the location.'

def configure_curve(self, domain='*', location=None):

    self.log.debug('Configure    curve:    %s[%s]', domain, location)
    if (location == CURVE_ALLOW_ANY):
        self.allow_any = True
    else:
        self.allow_any = False
        try:
            self.certs[domain] = load_certificates(location)
        except Exception as e:
            self.log.error('Failed    to    load    CURVE    certs    from    %s:    %s', location, e)
