1. 19 6月, 2013 1 次提交
    • A
      X.509: do not emit any informational output · a857c6e7
      Arnd Bergmann 提交于
      When building a kernel using 'make -s', I expect to see an empty output,
      except for build warnings and errors. The build_OID_registry code
      always prints one line when run, which is not helpful to most people
      building the kernels, and which makes it harder to automatically
      check for build warnings.
      
      Let's just remove the one line output.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      a857c6e7
  2. 08 10月, 2012 1 次提交
    • D
      X.509: Implement simple static OID registry · a77ad6ea
      David Howells 提交于
      Implement a simple static OID registry that allows the mapping of an encoded
      OID to an enum value for ease of use.
      
      The OID registry index enum appears in the:
      
      	linux/oid_registry.h
      
      header file.  A script generates the registry from lines in the header file
      that look like:
      
      	<sp*>OID_foo,<sp*>/*<sp*>1.2.3.4<sp*>*/
      
      The actual OID is taken to be represented by the numbers with interpolated
      dots in the comment.
      
      All other lines in the header are ignored.
      
      The registry is queries by calling:
      
      	OID look_up_oid(const void *data, size_t datasize);
      
      This returns a number from the registry enum representing the OID if found or
      OID__NR if not.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      a77ad6ea
反馈
建议
客服 返回
顶部