Reformat/tidy some of the ASN1 code.
[openssl.git] / crypto / buffer / buf_err.c
index 2f971a5f38ba839082b165b8d5357844a3d8edac..73702f0f102df9d3add0ac465147948e03e06583 100644 (file)
@@ -1,6 +1,6 @@
 /* crypto/buffer/buf_err.c */
 /* ====================================================================
- * Copyright (c) 1999 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2003 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 #include <openssl/buffer.h>
 
 /* BEGIN ERROR CODES */
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
 static ERR_STRING_DATA BUF_str_functs[]=
        {
+{ERR_PACK(0,BUF_F_BUF_MEMDUP,0),       "BUF_memdup"},
 {ERR_PACK(0,BUF_F_BUF_MEM_GROW,0),     "BUF_MEM_grow"},
 {ERR_PACK(0,BUF_F_BUF_MEM_NEW,0),      "BUF_MEM_new"},
 {ERR_PACK(0,BUF_F_BUF_STRDUP,0),       "BUF_strdup"},
+{ERR_PACK(0,BUF_F_BUF_STRNDUP,0),      "BUF_strndup"},
 {0,NULL}
        };
 
@@ -86,7 +88,7 @@ void ERR_load_BUF_strings(void)
        if (init)
                {
                init=0;
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
                ERR_load_strings(ERR_LIB_BUF,BUF_str_functs);
                ERR_load_strings(ERR_LIB_BUF,BUF_str_reasons);
 #endif