Commit 22ed0e86 authored by James Hughes's avatar James Hughes
Browse files

Setting pins when there is no pin.

parent 99b99a14
Loading
Loading
Loading
Loading
+59 −54
Original line number Diff line number Diff line
@@ -496,15 +496,22 @@ message Command {
			// these are the port numbers for the software
			optional int32 port = 10;
			optional int32 tlsPort = 11;
			optional bool Locking = 18;
			optional bool SecureErase = 19;

			// 18, 19 are reserved.

			// Set the lock and erase pins.
			// This is only used when the lock and erase pins are NOT set. If the
			// lock and erase pins are set, you must use pinops to change the pins.
			// To remove an existing Pin you must use a pinop.
			optional bytes lockPIN = 20;
			optional bytes erasePIN = 21;

			message Interface {
				optional string name = 1;
				optional bytes MAC = 2;
				optional bytes ipv4Address = 3;
				optional bytes ipv6Address = 4;
			}

		}

		// These numbers start at 0 when the device starts up and never wraps or resets.
@@ -545,7 +552,6 @@ message Command {
		message Device {
			optional bytes name = 1;
		}

	}

	// These are persistent options that are retained across power fail and
@@ -605,7 +611,6 @@ message Command {

		// The range on the request and results on the response
		optional Range range = 2;
        
		enum BackOpType {
			INVALID_BACKOP = -1;

@@ -627,10 +632,11 @@ message Command {
	// This must come over the TLS connection to protect the confidentiality and
	// integrity. This operations must be used with PinAuth.    
	message PinOperation {
        
		optional PinOpType pinOpType = 1;

	        // New pin used for SET_LOCKPIN_PINOP or SET_ERASEPIN_PINOP operations
		// New pin used for SET_LOCKPIN_PINOP or SET_ERASEPIN_PINOP operations.
		// Setting the pin to "" turns the lock off and requires HMAC auth command
		// to set the pin again.
		optional bytes newPin = 2;

		enum PinOpType {
@@ -669,6 +675,7 @@ message Command {
			// error is returned.
			SET_ERASEPIN_PINOP = 6;
		}

	}

	enum Priority {
@@ -708,12 +715,10 @@ message Command {
		GETKEYRANGE_RESPONSE = 11;

		// 13 and 14 are reserved, do not use
		
		GETVERSION = 16;
		GETVERSION_RESPONSE = 15;

		// 17, 18, 19, and 20 are reserved, do not use
		
		SETUP = 22;
		SETUP_RESPONSE = 21;
		GETLOG = 24;