Skip to content

Commit be9dbb9

Browse files
author
royb
committed
Merge branch 'refs/heads/x9.146-wolfssl-interop'
2 parents e7e27d4 + ef44022 commit be9dbb9

File tree

9,039 files changed

+1398006
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,039 files changed

+1398006
-0
lines changed

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Set default behaviour, in case users don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files we want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.gradle text diff=groovy
7+
*.html text diff=html
8+
*.java text diff=java
9+
*.pem text
10+
#*.rsp text
11+
*.tmpl text
12+
13+
# Denote all files that are truly binary and should not be modified.
14+
*.png binary
15+
*.jpg binary
16+
*.data binary

.github/workflows/codeql.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master" ]
20+
schedule:
21+
- cron: '23 12 * * 3'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'java' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Use only 'java' to analyze code written in Java, Kotlin or both
38+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
39+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v3
44+
45+
# Initializes the CodeQL tools for scanning.
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@v2
48+
with:
49+
languages: ${{ matrix.language }}
50+
# If you wish to specify custom queries, you can do so here or in a config file.
51+
# By default, queries listed here will override any specified in a config file.
52+
# Prefix the list here with "+" to use these queries and those in the config file.
53+
54+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55+
# queries: security-extended,security-and-quality
56+
57+
58+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59+
# If this step fails, then you should remove it and run the build manually (see below)
60+
# name: Autobuild
61+
# uses: github/codeql-action/autobuild@v2
62+
63+
# ℹ️ Command-line programs to run using the OS shell.
64+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65+
66+
# If the Autobuild fails above, remove it and uncomment the following three lines.
67+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
68+
69+
# - run: |
70+
# echo "Run, Build Application using script"
71+
# gradle clean build
72+
73+
- name: Perform CodeQL Analysis
74+
uses: github/codeql-action/analyze@v2
75+
with:
76+
category: "/language:${{matrix.language}}"
77+

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.classpath
2+
.gradle
3+
.project
4+
5+
*.class
6+
*.gen
7+
*/*.gen
8+
*.swp
9+
*.iml
10+
*/*.iml
11+
12+
bin/
13+
build/
14+
*/build/
15+
libs/*.jar
16+
out/
17+
*/out/
18+
.settings/
19+
20+
pg/*.asc
21+
pg/*.bak
22+
pg/*.bpg
23+
pg/*.txt
24+
25+
.idea
26+
27+
codesigning.jks
28+
29+
/prov/src/main/core/
30+
31+
bc-build.user.properties

.gitlab-ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
stages:
2+
- check
3+
- build
4+
- test
5+
- publish
6+
- sync
7+
8+
check-code:
9+
stage: check
10+
script:
11+
- "ecr_login"
12+
- "ecr_pull vm_base_intel latest"
13+
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/check_java.sh\""
14+
artifacts:
15+
when: always
16+
paths:
17+
- "core/build/reports"
18+
- "prov/build/reports"
19+
- "pg/build/reports"
20+
- "pkix/build/reports"
21+
- "mail/build/reports"
22+
- "util/build/reports"
23+
- "tls/build/reports"
24+
- "mls/build/reports"
25+
26+
ant-build:
27+
stage: build
28+
needs: [ "check-code" ]
29+
script:
30+
- "ecr_login"
31+
- "ecr_pull vm_base_intel latest"
32+
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/build_1_8.sh\""
33+
34+
35+
test-code:
36+
stage: test
37+
needs: [ "check-code" ]
38+
script:
39+
- "ecr_login"
40+
- "ecr_pull vm_base_intel latest"
41+
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/test.sh\""
42+
artifacts:
43+
when: always
44+
reports:
45+
junit:
46+
- "core/build/test-results/**/*.xml"
47+
- "prov/build/test-results/**/*.xml"
48+
- "pg/build/test-results/**/*.xml"
49+
- "pkix/build/test-results/**/*.xml"
50+
- "mail/build/test-results/**/*.xml"
51+
- "util/build/test-results/**/*.xml"
52+
- "tls/build/test-results/**/*.xml"
53+
- "mls/build/test-results/**/*.xml"
54+
55+
56+
publish:
57+
stage: publish
58+
script:
59+
- "apply_overlay bc-java-pub ./"
60+
- "ecr_login"
61+
- "ecr_pull vm_base_intel latest"
62+
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/pub.sh\""
63+
64+
spongycastle:
65+
stage: "sync"
66+
script:
67+
- "syncpongy.sh"

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: java
2+
jdk:
3+
- openjdk8

CONTRIBUTING.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Bouncy Castle Contributing Guidelines <!-- omit in toc -->
2+
3+
Thank you for contributing to Bouncy Castle!
4+
5+
In this guide, you get an overview of the contribution workflow from starting a discussion or opening an issue, to creating, reviewing, and merging a pull request.
6+
7+
For an overview of the project, see [README](README.md).
8+
9+
### Start a discussion
10+
If you have a question or problem, you can [search in discussions](https://github.com/bcgit/bc-java/discussions), if someone has already found a solution to your problem.
11+
12+
Or you can [start a new discussion](https://github.com/bcgit/bc-java/discussions/new/choose) and ask your question.
13+
14+
### Create an issue
15+
16+
If you find a problem with Bouncy Castle, [search if an issue already exists](https://github.com/bcgit/bc-java/issues).
17+
18+
> **_NOTE:_** If the issue is a __potential security problem__, please contact us
19+
before posting anything public. See [Security Policy](SECURITY.md).
20+
21+
If a related discussion or issue doesn't exist, and the issue is not security related, you can [open a new issue](https://github.com/bcgit/bc-java/issues/new). An issue can be converted into a discussion if regarded as one.
22+
23+
### Contribute to the code
24+
25+
For substantial, non-trivial contributions, you may be asked to sign a contributor assignment agreement. Optionally, you can also have your name and contact information listed in [Contributors](https://www.bouncycastle.org/contributors.html).
26+
27+
Please note we are unable to accept contributions which cannot be released under the [Bouncy Castle License](https://www.bouncycastle.org/licence.html). Issuing a pull request on our public github mirror is taken as agreement to issuing under the Bouncy Castle License.
28+
29+
#### Create a pull request
30+
31+
> **_NOTE:_** If the issue is a __potential security problem__, please contact us. See [Security Policy](SECURITY.md).
32+
33+
You are welcome to send patches, under the Bouncy Castle License, as pull requests. For more information, see [Creating a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). For minor updates, you can instead choose to create an issue with short snippets of code. See above.
34+
35+
* For contributions touching multiple files try and split up the pull request, smaller changes are easier to review and test, as well as being less likely to run into merge issues.
36+
* Create a test cases for your change, it may be a simple addition to an existing test. If you do not know how to do this, ask us and we will help you.
37+
* If you run into any merge issues, check out this [git tutorial](https://github.com/skills/resolve-merge-conflicts) to help you resolve merge conflicts and other issues.
38+
39+
For more information, refer to the Bouncy Castle documentation on [Getting Started with Bouncy Castle](https://doc.primekey.com/bouncycastle/introduction#Introduction-GettingStartedwithBouncyCastle).
40+
41+
#### Self-review
42+
43+
Don't forget to self-review. Please follow these simple guidelines:
44+
* Keep the patch limited, only change the parts related to your patch.
45+
* Do not change other lines, such as whitespace, adding line breaks to Java doc, etc. It will make it very hard for us to review the patch.
46+
47+
48+
#### Your pull request is merged
49+
50+
For acceptance, pull requests need to meet specific quality criteria, including tests for anything substantial. Someone on the Bouncy Castle core team will review the pull request when there is time, and let you know if something is missing or suggest improvements. If it is a useful and generic feature it will be integrated in Bouncy Castle to be available in a later release.
51+

0 commit comments

Comments
 (0)