Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2016-05-20 18:22:33 +0300
committerDavid Benjamin <davidben@google.com>2016-05-20 18:31:52 +0300
commit1aa03f07450da091b440b1f14937aa44bab4e428 (patch)
treecfb788b4131c09dd81c385df773df8149d7ea079 /decrepit
parent7cb920b6acbbddf281d9eb77ef785ec63fde3843 (diff)
Add |EVP_dss1| as an alias for |EVP_sha1| in decrepit.
Change-Id: I51fa744c367d1f0c7044050f99c4992778e649bd Reviewed-on: https://boringssl-review.googlesource.com/8030 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'decrepit')
-rw-r--r--decrepit/evp/CMakeLists.txt1
-rw-r--r--decrepit/evp/dss1.c20
2 files changed, 21 insertions, 0 deletions
diff --git a/decrepit/evp/CMakeLists.txt b/decrepit/evp/CMakeLists.txt
index ee3bf33b..e631a9a9 100644
--- a/decrepit/evp/CMakeLists.txt
+++ b/decrepit/evp/CMakeLists.txt
@@ -5,5 +5,6 @@ add_library(
OBJECT
+ dss1.c
evp_do_all.c
)
diff --git a/decrepit/evp/dss1.c b/decrepit/evp/dss1.c
new file mode 100644
index 00000000..9c370acb
--- /dev/null
+++ b/decrepit/evp/dss1.c
@@ -0,0 +1,20 @@
+/* Copyright (c) 2016, Google Inc.
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
+
+#include <openssl/digest.h>
+
+
+const EVP_MD *EVP_dss1(void) {
+ return EVP_sha1();
+}