/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #if ENABLE(WEB_CRYPTO) #include "JSRsaHashedImportParams.h" #include "JSDOMConvertObject.h" #include "JSDOMConvertStrings.h" #include "JSDOMConvertUnion.h" #include #include namespace WebCore { using namespace JSC; #if ENABLE(WEB_CRYPTO) template<> CryptoAlgorithmRsaHashedImportParams convertDictionary(JSGlobalObject& lexicalGlobalObject, JSValue value) { VM& vm = JSC::getVM(&lexicalGlobalObject); auto throwScope = DECLARE_THROW_SCOPE(vm); bool isNullOrUndefined = value.isUndefinedOrNull(); auto* object = isNullOrUndefined ? nullptr : value.getObject(); if (UNLIKELY(!isNullOrUndefined && !object)) { throwTypeError(&lexicalGlobalObject, throwScope); return { }; } CryptoAlgorithmRsaHashedImportParams result; JSValue nameValue; if (isNullOrUndefined) nameValue = jsUndefined(); else { nameValue = object->get(&lexicalGlobalObject, Identifier::fromString(vm, "name"_s)); RETURN_IF_EXCEPTION(throwScope, { }); } if (!nameValue.isUndefined()) { result.name = convert(lexicalGlobalObject, nameValue); RETURN_IF_EXCEPTION(throwScope, { }); } else { throwRequiredMemberTypeError(lexicalGlobalObject, throwScope, "name", "RsaHashedImportParams", "DOMString"); return { }; } JSValue hashValue; if (isNullOrUndefined) hashValue = jsUndefined(); else { hashValue = object->get(&lexicalGlobalObject, Identifier::fromString(vm, "hash"_s)); RETURN_IF_EXCEPTION(throwScope, { }); } if (!hashValue.isUndefined()) { result.hash = convert>(lexicalGlobalObject, hashValue); RETURN_IF_EXCEPTION(throwScope, { }); } else { throwRequiredMemberTypeError(lexicalGlobalObject, throwScope, "hash", "RsaHashedImportParams", "(object or DOMString)"); return { }; } return result; } #endif } // namespace WebCore #endif // ENABLE(WEB_CRYPTO) le.golang.org/appengine/internal/net.go?id=024f56682dcaaaae2dd990d6fae3b54c8d17c467'>treecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-05-12Makefile.release: bogus all target (#666)Gravatar Miek Gieben 1-7/+10
Make the default target do nothing and put the actual release under a 'release' target. Prevent accidentally committing unwanted commits to the repo. Tested with `make -f Makefile.release -n`.
2017-05-08Add License Scanning badge (#663)Gravatar Chris Aniszczyk 1-0/+1
In CNCF, we are experimenting with FOSSA for license scanning on all of our projects. https://app.fossa.io/reports/7d989803-8931-4221-a11f-330b7f333cdd
2017-05-05Don't check vendor code for gofmt, it takes forever (#661)Gravatar John Belamaric 1-1/+1
2017-05-03Release: fix docker pushGravatar Miek Gieben 1-0/+2
2017-05-03Release: fix MakefileGravatar Miek Gieben 1-0/+1
Latest refactoring fubar-ed Makefile.release. Fix the Linux build target.
2017-05-03Release 007v007Gravatar Miek Gieben 1-1/+1
2017-05-03middleware/file: correctly parse the stanza (#658)Gravatar Miek Gieben 3-34/+87
* middleware/file: correctly parse the stanza Parsing the file stanza would give precedence to 'transfer' and ignore other bits if it wasn't specified. This change fixes the parsing. The actually external CNAME retrieval is working fine (once the upstream is correctly parsed). This wasn't caught in tests, because we lack a parsing test for this. Fixes #657 * Add tests
2017-04-30Install: split build targets (#656)Gravatar Miek Gieben 1-3/+13
Allows one to use `make -f Makefile.release build-arm` to just get an Arm binary.
2017-04-30Remove annoying INFO from k8s middleware (#655)Gravatar John Belamaric 1-3/+1
2017-04-29middleware/cache: don't cache expired RRSIGs (#641)Gravatar Miek Gieben 7-62/+172
Check message for expired sig and don't cache those. Aside: This hack of caching entire messages is probably something we should stop doing at some point in the future and do this on a per RRset basis. Fixes #367 #635
2017-04-28Update vendor with `go dep`Gravatar Yong Tang 8408-13844/+2469780
This fix updates vendor with `go dep` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-04-28Add vendor setup with `go dep`Gravatar Yong Tang 3-1/+443
This fix adds vendor setup with `go dep` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-04-27update readme (#650)Gravatar Miek Gieben 1-3/+4
* update readme * Add slack Also add the slack channel.
2017-04-26middleware/proxy: Kill goroutines on stop (#646)Gravatar Miek Gieben 5-5/+112
* middleware/proxy: Kill goroutines on stop Ports caddy's https://github.com/mholt/caddy/commit/59bf71c2932c3b814a6a1211c492a1aa9f71d4a1 Excludes the proxy_test.go test part though. Fixes #644 * Add tests
2017-04-24Fix health race (#645)Gravatar Miek Gieben 6-28/+26
* Revert "middleware/proxy: Make Unhealthy a pointer (#615)" This reverts commit acbf522cebdcd53c26d153c1d9267d709ba75f64. * middleware/proxy: add proper locking This add the proper locking around `Unhealthy`.
2017-04-24Point users to deployment repo (#643)Gravatar John Belamaric 1-23/+3
2017-04-24Pprof listen (#639)Gravatar Chris O'Haver 4-9/+34
* add listen addr option * Add listen address option to pprof * There is configuration * code styling
2017-04-22msg.Service: add HostType() method (#627)Gravatar Miek Gieben 3-40/+114
This method parses the Host field in the service. It returns 1 or 3 things 1) it is a host 2) an IPv4 address or an 3) IPv6 address. This simplifies some code a bit and allows for 1 way of parsing the Host field. This *only* parse the Host field, Mail and/or Text values should be checked separately. We reuse the dns.TypeXXX values for this as to not invent anything new.
2017-04-21Fix go pprof lib link (#638)Gravatar Chris O'Haver 1-1/+1
2017-04-21Fix link to SkyDNS (#637)Gravatar Dominic 1-1/+1
Url was wrong
2017-04-20Fix TLS error message (#634)Gravatar Yue Ko 1-1/+1
Print corresponding error message when TLS initialization fails.
2017-04-20Add MAINTAINERS (#633)Gravatar Miek Gieben 2-0/+10
Add a MAINTAINERS file. It's not generated and not as elaborate (i.e. no focus areas) as the one prometheus uses. But it's a start. Generated with `git shortlog -s -n`, everyone with more than 5 commits. Docs are put in `Makefile.release`. Fixes #566
2017-04-19Clean up the tls middleware README (#631)Gravatar John Belamaric 1-4/+22
2017-04-19Update the various Kubernetes middleware README files. (#630)Gravatar John Belamaric 3-174/+21
2017-04-19Add fallthrough support for Kubernetes (#626)Gravatar John Belamaric 7-9/+122
* Add fallthrough support for Kubernetes This enables registering other services in the same zone as Kubernetes services. This also re-orders the middleware chain so that Kubernetes comes before other types, in order to make this work out-of-the-box. * Remove extra line
2017-04-18Tracing for gRPC Server (#619)Gravatar John Belamaric 6-11/+72
* Implements tracing in the native gRPC server * Undo some unnecessary changes * Properly revert trace/setup.go this time * Some very very basic tests * Remove warning for non-Trace middleware