Beispiel #1
0
def apply(cert, zocket):
    """
    Apply certificate to socket, i.e. use for CURVE security on socket.
    If certificate was loaded from public file, the secret key will be
    undefined, and this certificate will not work successfully.
    """
    C.zcert_apply(cert, zocket)