# grqz/ssl_imp architecture

> Architecture diagram of the GitHub repository grqz/ssl_imp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/grqz/ssl_imp
- Repository: https://github.com/grqz/ssl_imp

## Overview

This is a small C client intended to reproduce Chrome-like TLS fingerprints using OpenSSL. The documented user workflow is to run the executable; the sampled code shows SSL context setup and custom ALPS/ECH handling in the same source file. The excerpts do not show the complete socket, handshake, or response flow, so those relationships are omitted.

Main entry points: [`main.c`](https://github.com/grqz/ssl_imp/blob/master/main.c) (Client executable)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["TLS client"]
  node_app["Client executable<br/>[main.c]"]
  node_openssl["OpenSSL"]
end

subgraph group_tls["TLS customization"]
  node_keylog["Key logging<br/>[main.c]"]
  node_alps["ALPS handling<br/>[main.c]"]
  node_ech["ECH handling<br/>[main.c]"]
end

node_user(("User"))

node_user -->|"runs"| node_app
node_app -->|"configures TLS"| node_openssl
node_app -->|"registers callback"| node_keylog

click node_app "https://github.com/grqz/ssl_imp/blob/master/main.c"
click node_keylog "https://github.com/grqz/ssl_imp/blob/master/main.c"
click node_alps "https://github.com/grqz/ssl_imp/blob/master/main.c"
click node_ech "https://github.com/grqz/ssl_imp/blob/master/main.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_openssl,node_user toneBlue
class node_keylog,node_alps,node_ech toneAmber
```

## Components

### TLS client

- [Client executable](https://github.com/grqz/ssl_imp/blob/master/main.c): `main.c`
- **OpenSSL**

### TLS customization

- [Key logging](https://github.com/grqz/ssl_imp/blob/master/main.c): `main.c`
- [ALPS handling](https://github.com/grqz/ssl_imp/blob/master/main.c): `main.c`
- [ECH handling](https://github.com/grqz/ssl_imp/blob/master/main.c): `main.c`

### Other components

- **User**

## Connections

- User → Client executable: runs (evidence: `README.md`)
- Client executable → OpenSSL: configures TLS (evidence: `main.c`)
- Client executable → Key logging: registers callback (evidence: `main.c`)
