Separated slot vendors and token vendors.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include "slot_vendors.h"
|
||||
#include "yubico_slot.h"
|
||||
|
||||
slot_vendor_t get_slot_vendor(vendor_id_t vid) {
|
||||
slot_vendor_t v;
|
||||
|
||||
switch (vid) {
|
||||
case YUBICO:
|
||||
v.get_slot_description = YUBICO_get_slot_description;
|
||||
v.get_slot_manufacturer = YUBICO_get_slot_manufacturer;
|
||||
v.get_slot_flags = YUBICO_get_slot_flags;
|
||||
v.get_slot_version = YUBICO_get_slot_version;
|
||||
break;
|
||||
|
||||
case UNKNOWN:
|
||||
default:
|
||||
v.get_slot_description = NULL;
|
||||
v.get_slot_manufacturer = NULL;
|
||||
v.get_slot_flags = NULL;
|
||||
v.get_slot_version = NULL;
|
||||
}
|
||||
|
||||
return v;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user