Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
asn1.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifs_debug.h"
#include "cifsproto.h"

Go to the source code of this file.

Data Structures

struct  asn1_ctx
 
struct  asn1_octstr
 

Macros

#define ASN1_UNI   0 /* Universal */
 
#define ASN1_APL   1 /* Application */
 
#define ASN1_CTX   2 /* Context */
 
#define ASN1_PRV   3 /* Private */
 
#define ASN1_EOC   0 /* End Of Contents or N/A */
 
#define ASN1_BOL   1 /* Boolean */
 
#define ASN1_INT   2 /* Integer */
 
#define ASN1_BTS   3 /* Bit String */
 
#define ASN1_OTS   4 /* Octet String */
 
#define ASN1_NUL   5 /* Null */
 
#define ASN1_OJI   6 /* Object Identifier */
 
#define ASN1_OJD   7 /* Object Description */
 
#define ASN1_EXT   8 /* External */
 
#define ASN1_ENUM   10 /* Enumerated */
 
#define ASN1_SEQ   16 /* Sequence */
 
#define ASN1_SET   17 /* Set */
 
#define ASN1_NUMSTR   18 /* Numerical String */
 
#define ASN1_PRNSTR   19 /* Printable String */
 
#define ASN1_TEXSTR   20 /* Teletext String */
 
#define ASN1_VIDSTR   21 /* Video String */
 
#define ASN1_IA5STR   22 /* IA5 String */
 
#define ASN1_UNITIM   23 /* Universal Time */
 
#define ASN1_GENTIM   24 /* General Time */
 
#define ASN1_GRASTR   25 /* Graphical String */
 
#define ASN1_VISSTR   26 /* Visible String */
 
#define ASN1_GENSTR   27 /* General String */
 
#define ASN1_PRI   0 /* Primitive */
 
#define ASN1_CON   1 /* Constructed */
 
#define ASN1_ERR_NOERROR   0
 
#define ASN1_ERR_DEC_EMPTY   2
 
#define ASN1_ERR_DEC_EOC_MISMATCH   3
 
#define ASN1_ERR_DEC_LENGTH_MISMATCH   4
 
#define ASN1_ERR_DEC_BADVALUE   5
 
#define SPNEGO_OID_LEN   7
 
#define NTLMSSP_OID_LEN   10
 
#define KRB5_OID_LEN   7
 
#define KRB5U2U_OID_LEN   8
 
#define MSKRB5_OID_LEN   7
 

Functions

int decode_negTokenInit (unsigned char *security_blob, int length, struct TCP_Server_Info *server)
 

Macro Definition Documentation

#define ASN1_APL   1 /* Application */

Definition at line 38 of file asn1.c.

#define ASN1_BOL   1 /* Boolean */

Definition at line 44 of file asn1.c.

#define ASN1_BTS   3 /* Bit String */

Definition at line 46 of file asn1.c.

#define ASN1_CON   1 /* Constructed */

Definition at line 68 of file asn1.c.

#define ASN1_CTX   2 /* Context */

Definition at line 39 of file asn1.c.

#define ASN1_ENUM   10 /* Enumerated */

Definition at line 52 of file asn1.c.

#define ASN1_EOC   0 /* End Of Contents or N/A */

Definition at line 43 of file asn1.c.

#define ASN1_ERR_DEC_BADVALUE   5

Definition at line 77 of file asn1.c.

#define ASN1_ERR_DEC_EMPTY   2

Definition at line 74 of file asn1.c.

#define ASN1_ERR_DEC_EOC_MISMATCH   3

Definition at line 75 of file asn1.c.

#define ASN1_ERR_DEC_LENGTH_MISMATCH   4

Definition at line 76 of file asn1.c.

#define ASN1_ERR_NOERROR   0

Definition at line 73 of file asn1.c.

#define ASN1_EXT   8 /* External */

Definition at line 51 of file asn1.c.

#define ASN1_GENSTR   27 /* General String */

Definition at line 64 of file asn1.c.

#define ASN1_GENTIM   24 /* General Time */

Definition at line 61 of file asn1.c.

#define ASN1_GRASTR   25 /* Graphical String */

Definition at line 62 of file asn1.c.

#define ASN1_IA5STR   22 /* IA5 String */

Definition at line 59 of file asn1.c.

#define ASN1_INT   2 /* Integer */

Definition at line 45 of file asn1.c.

#define ASN1_NUL   5 /* Null */

Definition at line 48 of file asn1.c.

#define ASN1_NUMSTR   18 /* Numerical String */

Definition at line 55 of file asn1.c.

#define ASN1_OJD   7 /* Object Description */

Definition at line 50 of file asn1.c.

#define ASN1_OJI   6 /* Object Identifier */

Definition at line 49 of file asn1.c.

#define ASN1_OTS   4 /* Octet String */

Definition at line 47 of file asn1.c.

#define ASN1_PRI   0 /* Primitive */

Definition at line 67 of file asn1.c.

#define ASN1_PRNSTR   19 /* Printable String */

Definition at line 56 of file asn1.c.

#define ASN1_PRV   3 /* Private */

Definition at line 40 of file asn1.c.

#define ASN1_SEQ   16 /* Sequence */

Definition at line 53 of file asn1.c.

#define ASN1_SET   17 /* Set */

Definition at line 54 of file asn1.c.

#define ASN1_TEXSTR   20 /* Teletext String */

Definition at line 57 of file asn1.c.

#define ASN1_UNI   0 /* Universal */

Definition at line 37 of file asn1.c.

#define ASN1_UNITIM   23 /* Universal Time */

Definition at line 60 of file asn1.c.

#define ASN1_VIDSTR   21 /* Video String */

Definition at line 58 of file asn1.c.

#define ASN1_VISSTR   26 /* Visible String */

Definition at line 63 of file asn1.c.

#define KRB5_OID_LEN   7

Definition at line 81 of file asn1.c.

#define KRB5U2U_OID_LEN   8

Definition at line 82 of file asn1.c.

#define MSKRB5_OID_LEN   7

Definition at line 83 of file asn1.c.

#define NTLMSSP_OID_LEN   10

Definition at line 80 of file asn1.c.

#define SPNEGO_OID_LEN   7

Definition at line 79 of file asn1.c.

Function Documentation

int decode_negTokenInit ( unsigned char security_blob,
int  length,
struct TCP_Server_Info server 
)

Definition at line 494 of file asn1.c.