/// <summary> /// Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM constraint to key /// </summary> public static void addConfirmConstraint(this ISshKey aKey) { var constraint = new Agent.KeyConstraint(); constraint.Type = Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_CONFIRM; aKey.AddConstraint(constraint); }
/// <summary> /// Adds Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_LIFETIME constraint to key /// </summary> public static void addLifetimeConstraint(this ISshKey aKey, uint aLifetime) { var constraint = new Agent.KeyConstraint(); constraint.Type = Agent.KeyConstraintType.SSH_AGENT_CONSTRAIN_LIFETIME; constraint.Data = aLifetime; aKey.AddConstraint(constraint); }