+
+ while (buffer_len(&e->request)) {
+ switch ((type = buffer_get_char(&e->request))) {
+ case SSH_AGENT_CONSTRAIN_LIFETIME:
+ death = time(NULL) + buffer_get_int(&e->request);
+ break;
+ case SSH_AGENT_CONSTRAIN_CONFIRM:
+ confirm = 1;
+ break;
+ default:
+ error("process_add_smartcard_key: "
+ "Unknown constraint type %d", type);
+ xfree(sc_reader_id);
+ xfree(pin);
+ goto send;
+ }
+ }
+ if (lifetime && !death)
+ death = time(NULL) + lifetime;
+