pub(crate) unsafe fn _ykpiv_ensure_application_selected(_state: *mut YubiKey) -> ErrorKind {
    // TODO(tarcieri): ENABLE_APPLICATION_RESELECTION support?
    //
    // Original C code below:
    //
    //    #if ENABLE_APPLICATION_RESELECTION
    //      if (NULL == state) {
    //        return YKPIV_GENERIC_ERROR;
    //      }
    //
    //      res = ykpiv_verify(state, NULL, 0);
    //
    //      if ((YKPIV_OK != res) && (YKPIV_WRONG_PIN != res)) {
    //        res = _ykpiv_select_application(state);
    //      }
    //      else {
    //        res = YKPIV_OK;
    //      }
    //
    //      return res;
    //    #else
    //      (void)state;
    //      return res;
    //    #endif

    ErrorKind::Ok
}
/// Ensure an application is selected (presently noop)
Ensure an application is selected (presently noop)
Ensure an application is selected ( presently noop )
pub(crate) unsafe fn _ykpiv_ensure_application_selected(_state: *mut YubiKey) -> ErrorKind {
    // TODO(tarcieri): ENABLE_APPLICATION_RESELECTION support?
    //
    // Original C code below:
    //
    //    #if ENABLE_APPLICATION_RESELECTION
    //      if (NULL == state) {
    //        return YKPIV_GENERIC_ERROR;
    //      }
    //
    //      res = ykpiv_verify(state, NULL, 0);
    //
    //      if ((YKPIV_OK != res) && (YKPIV_WRONG_PIN != res)) {
    //        res = _ykpiv_select_application(state);
    //      }
    //      else {
    //        res = YKPIV_OK;
    //      }
    //
    //      return res;
    //    #else
    //      (void)state;
    //      return res;
    //    #endif
    ErrorKind::Ok
}
pub ( crate ) unsafe fn _ykpiv_ensure_application_selected ( _state : * mut YubiKey ) -> ErrorKind { // TODO(tarcieri): ENABLE_APPLICATION_RESELECTION support? // // Original C code below: // //    #if ENABLE_APPLICATION_RESELECTION //      if (NULL == state) { //        return YKPIV_GENERIC_ERROR; //      } // //      res = ykpiv_verify(state, NULL, 0); // //      if ((YKPIV_OK != res) && (YKPIV_WRONG_PIN != res)) { //        res = _ykpiv_select_application(state); //      } //      else { //        res = YKPIV_OK; //      } // //      return res; //    #else //      (void)state; //      return res; //    #endif ErrorKind :: Ok }
Ensure an application is selected (presently noop)
Ensure an application is selected ( presently noop )
_state
*mut YubiKey